Skip to content

Commit

Permalink
feat: handle keyboardinterrupt exception
Browse files Browse the repository at this point in the history
  • Loading branch information
u8slvn committed Aug 30, 2024
1 parent 08aff87 commit 2390eb6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/doggo/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def run() -> None:
if COMPILED_ENV and WIN:
pyi_splash.close()

world.start()
try:
world.start()
except KeyboardInterrupt:
world.stop()


if __name__ == "__main__":
Expand Down

0 comments on commit 2390eb6

Please sign in to comment.