1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-20 13:50:12 +01:00

remove unused variable, as reported by pyflakes

This commit is contained in:
Hans-Christoph Steiner 2018-05-25 10:00:52 +02:00
parent 74fb07b302
commit cef73e5794

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))