Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program doesn't exit. #5

Open
mfgea opened this issue Feb 14, 2013 · 3 comments
Open

Program doesn't exit. #5

mfgea opened this issue Feb 14, 2013 · 3 comments

Comments

@mfgea
Copy link

mfgea commented Feb 14, 2013

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!

@jaredly
Copy link
Owner

jaredly commented Feb 14, 2013

awesome thanks for catching this. Do you want to just do a pull request?

On Wed, Feb 13, 2013 at 8:25 PM, mfgea [email protected] wrote:

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!


Reply to this email directly or view it on GitHubhttps://github.com//issues/5.

Jared

@mfgea
Copy link
Author

mfgea commented Feb 23, 2013

Hi, Jared.

Just put in your next commit. Thanks for your work. It's been really useful
for my kid.

Bye!

2013/2/14 Jared Forsyth [email protected]

awesome thanks for catching this. Do you want to just do a pull request?

On Wed, Feb 13, 2013 at 8:25 PM, mfgea [email protected] wrote:

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!


Reply to this email directly or view it on GitHub<
https://github.com/jabapyth/babytux/issues/5>.

Jared


Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-13534624.

Matias Fernando Gea
[email protected]
http://www.mfgea.com.ar

@matthewturner
Copy link
Contributor

Added PR for this here #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants