[hg] galaxy 3206: Prevent sys.exit() from being caught by the tr...
details: http://www.bx.psu.edu/hg/galaxy/rev/84a9e0f0387b changeset: 3206:84a9e0f0387b user: Nate Coraor <nate@bx.psu.edu> date: Tue Jan 05 15:17:10 2010 -0500 description: Prevent sys.exit() from being caught by the try-except block in check_galaxy.py (since sys.exit() actually raises an exception, but one not derived from Exception). diffstat: scripts/check_python.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (10 lines): diff -r d81624fcac0b -r 84a9e0f0387b scripts/check_python.py --- a/scripts/check_python.py Tue Jan 05 14:47:55 2010 -0500 +++ b/scripts/check_python.py Tue Jan 05 15:17:10 2010 -0500 @@ -25,5 +25,5 @@ check_python() print check_virtualenv() sys.exit( 0 ) - except: + except Exception: sys.exit( 1 )
participants (1)
-
Greg Von Kuster