diff --git a/modules/calc.py b/modules/calc.py index 0e3c365..4e17342 100755 --- a/modules/calc.py +++ b/modules/calc.py @@ -25,8 +25,8 @@ def c(bot, trigger): try: value = numexpr.evaluate(expr, local_dict={}, global_dict={}) value = value.item() - except: - value = "Error. The expression was not understood." + except Exception as e: + value = type(e).__name__ + ': ' + str(e) return_dict['value'] = value with multiprocessing.Manager() as manager: