mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-29 01:31:45 -05:00
remove unused variable, as reported by pyflakes
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user