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

[Misc] Fixed that mass_spring_3d.py do not exit on import error #2400

Merged
merged 5 commits into from Jun 4, 2021

Conversation

Leonz5288
Copy link
Contributor

@Leonz5288 Leonz5288 requested a review from k-ye June 3, 2021 10:58
@peterjpxie
Copy link

sys.exit() is a better than exit().
sys.exit(): Use in a script
exit(): Should use only in interactive python, i.e. when you run python without script file argument.
Reference: https://www.geeksforgeeks.org/python-exit-commands-quit-exit-sys-exit-and-os-_exit/

@Leonz5288
Copy link
Contributor Author

@peterjpxie Thanks for the information!

@Leonz5288
Copy link
Contributor Author

/format

@k-ye k-ye merged commit d6234cc into taichi-dev:master Jun 4, 2021
@k-ye k-ye mentioned this pull request Jun 7, 2021
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

Successfully merging this pull request may close these issues.

None yet

4 participants