mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-28 05:33:48 -08:00
'Refactored by Sourcery'
This commit is contained in:
@@ -49,8 +49,7 @@ def ask_int(prompt: str) -> int:
|
||||
while True:
|
||||
answer = input(prompt)
|
||||
try:
|
||||
int_answer = int(answer)
|
||||
return int_answer
|
||||
return int(answer)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user