Skip to content

Program doesn't exit. #5

Description

@mfgea

I found that writing "smash" and pressing "Esc" didn't exit the program. It is caused by the try...catch block in the main loop that catches and passes the SystemExit exception raised by the sys.exit() call. A simple solution i found was to import "os" and use os._exit(0) instead of sys.exit(0).

Cheers!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions