stfu pylint
This commit is contained in:
4
calc.py
4
calc.py
@@ -25,8 +25,8 @@ def calc(text):
|
||||
break
|
||||
if should_calc and not any(op in expression for op in ignore_operators):
|
||||
try:
|
||||
result = str(eval(expression))
|
||||
except:
|
||||
result = str(eval(expression)) # pylint: disable = W0123
|
||||
except: # pylint: disable = W0702
|
||||
# we can run into all kinds of errors here
|
||||
# most probably SyntaxError
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user