diff --git a/src/main/py/read_math_function.py b/src/main/py/read_math_function.py index f2a2a7b..89ea18d 100644 --- a/src/main/py/read_math_function.py +++ b/src/main/py/read_math_function.py @@ -14,7 +14,6 @@ def is_allowed_string(type, value): def calculate_string(string): try: - result = eval(string) - return result + return eval(string) except Exception as e: - return f"Fehler bei der Berechnung: {str(e)}" \ No newline at end of file + return f"Fehler bei der Berechnung: {str(e)}"