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

ferret7 -script .... returns to Python prompt when error occurs #1123

Closed
karlmsmith opened this issue Nov 23, 2017 · 1 comment
Closed

ferret7 -script .... returns to Python prompt when error occurs #1123

karlmsmith opened this issue Nov 23, 2017 · 1 comment

Comments

@karlmsmith
Copy link
Contributor

karlmsmith commented Nov 23, 2017

Reported by @karlmsmith on 9 May 2011 21:54 UTC
When a script is run using "ferret7 -script myscript.jnl" to start pyferret, if myscript.jnl contains an error, it exits to the python prompt instead of exiting completely.

This is due to the problem raising an exception that returns control back to Python before completing the semicolon-separated list of commands which ends with a Ferret "exit". (And because of the python call in the ferret7 shell script includes "-i", the exception doesn't exit python.)

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1851

@karlmsmith
Copy link
Contributor Author

karlmsmith commented Nov 23, 2017

Modified by @karlmsmith on 11 May 2011 21:30 UTC

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

No branches or pull requests

1 participant