mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-30 22:52:00 -08:00
Python: Fix Flake8 E722 and E741
Additionally: * Use functions to group blocks of code * Use variable names (not just one character...)
This commit is contained in:
@@ -90,7 +90,7 @@ def to_int(s):
|
||||
try:
|
||||
n = int(s)
|
||||
return True, n
|
||||
except:
|
||||
except Exception:
|
||||
return False, 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user