Skip to content

Commit 9d30907

Browse files
Merge pull request #14 from xomicsdatascience/print_removal
removed irrelevant print statement
2 parents 4d775cb + 98e376f commit 9d30907

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

typomancy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "0.0.14"
1+
__version__ = "0.0.15"
22

33
from . import handlers

typomancy/handlers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def type_wrangler(input_data: str,
4242
try:
4343
cast_data = literal_eval(input_data) # "13" resolves to int, even if it would be fine as a float
4444
except Exception as e:
45-
print(f"Error converting {input_data} to type {typecast}")
4645
raise e
4746
try:
4847
tmp_cast = typecast(cast_data)
@@ -62,6 +61,8 @@ def type_wrangler(input_data: str,
6261
return cast_data
6362
except ValueError: # be nice and assume that the error is in the type, not the user's input
6463
raise TypeError(f"Unable to convert input of type {type(input_data)} to {typecast}")
64+
except Exception as e:
65+
raise e
6566
elif _istyping(typecast):
6667
# Try to do casting
6768
caster = cast_map[typecast.__name__]

0 commit comments

Comments
 (0)