From 98e376fc24994861ff45da0964bb6c25a927fc2f Mon Sep 17 00:00:00 2001 From: Alexandre Hutton <50920802+AlexandreHutton@users.noreply.github.com> Date: Thu, 29 May 2025 11:12:05 -0700 Subject: [PATCH] removed irrelevant print statement --- typomancy/__init__.py | 2 +- typomancy/handlers.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/typomancy/__init__.py b/typomancy/__init__.py index 27b3753..11509ce 100644 --- a/typomancy/__init__.py +++ b/typomancy/__init__.py @@ -1,3 +1,3 @@ -__version__ = "0.0.14" +__version__ = "0.0.15" from . import handlers diff --git a/typomancy/handlers.py b/typomancy/handlers.py index 061f0b7..eb28ade 100644 --- a/typomancy/handlers.py +++ b/typomancy/handlers.py @@ -42,7 +42,6 @@ def type_wrangler(input_data: str, try: cast_data = literal_eval(input_data) # "13" resolves to int, even if it would be fine as a float except Exception as e: - print(f"Error converting {input_data} to type {typecast}") raise e try: tmp_cast = typecast(cast_data) @@ -62,6 +61,8 @@ def type_wrangler(input_data: str, return cast_data except ValueError: # be nice and assume that the error is in the type, not the user's input raise TypeError(f"Unable to convert input of type {type(input_data)} to {typecast}") + except Exception as e: + raise e elif _istyping(typecast): # Try to do casting caster = cast_map[typecast.__name__]