File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- __version__ = "0.0.14 "
1+ __version__ = "0.0.15 "
22
33from . import handlers
Original file line number Diff line number Diff 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__ ]
You can’t perform that action at this time.
0 commit comments