Skip to content

Commit

Permalink
KeyboardInterrupt fix
Browse files Browse the repository at this point in the history
args is empty, I do not know why, maybe in Python 2 it had a number.

Closes: #9
  • Loading branch information
vitaly-zdanevich committed Jun 15, 2024
1 parent bf7bde6 commit 28667e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geeknote/geeknote.py
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,8 @@ def main(args=None):
Tags().remove(**ARGS)

except (KeyboardInterrupt, SystemExit, tools.ExitException) as e:
exit_status_code = e.args[0]
exit_status_code = 1
print(type(e))

except Exception as e:
traceback.print_exc()
Expand Down

0 comments on commit 28667e4

Please sign in to comment.