Skip to content

Commit c497fad

Browse files
committed
Correct linter problems
1 parent ac959d6 commit c497fad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyqt-calculator-tutorial/pycalc/pycalc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def evaluateExpression(expression):
114114
"""Evaluate an expression."""
115115
try:
116116
result = str(eval(expression, {}, {}))
117-
except:
117+
except Exception:
118118
result = ERROR_MSG
119119

120120
return result
@@ -165,7 +165,7 @@ def main():
165165
view.show()
166166
# 7. Create an instance of the model, and the controller
167167
model = evaluateExpression
168-
ctrl = PyCalcCtrl(model=model, view=view)
168+
PyCalcCtrl(model=model, view=view)
169169
# 8. Execute calculator's main loop
170170
sys.exit(pycalc.exec_())
171171

0 commit comments

Comments
 (0)