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:
parent
74fb07b302
commit
cef73e5794
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user