remove unused variable, as reported by pyflakes

This commit is contained in:
Hans-Christoph Steiner committed 2018-05-25 10:32:01 +02:00
1 parent 74fb07b302
commit cef73e5794
1 file changed
+1 -1
+1 -1
View File
@@ -3215,7 +3215,7 @@ def calculate_math_string(expr):
if '#' in expr:
raise SyntaxError('no comments allowed')
return execute_ast(ast.parse(expr, mode='eval').body)
except SyntaxError as e:
except SyntaxError:
raise SyntaxError("could not parse expression '{expr}', "
"only basic math operations are allowed (+, -, *)"
.format(expr=expr))