Skip to content
Snippets Groups Projects
Commit 260dde9e authored by nz11's avatar nz11
Browse files

fix parse_int

parent 3c1f9f7a
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,7 @@ def prompt_args(): ...@@ -74,6 +74,7 @@ def prompt_args():
def parse_int(s: str): def parse_int(s: str):
try: try:
v = int(s) v = int(s)
return v
except ValueError: except ValueError:
return None return None
if v <= 0: if v <= 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment