Don't show startup error for SystemExit (used by --help).

This commit is contained in:
Cole Robinson 2009-06-26 14:05:27 -04:00
parent 1bd9c50942
commit 02fc09e0a8

View File

@ -374,6 +374,8 @@ if __name__ == "__main__":
main()
except KeyboardInterrupt:
logging.debug("Received KeyboardInterrupt. Exiting application.")
except SystemExit:
raise
except Exception, run_e:
logging.exception(run_e)
_show_startup_error(str(run_e), "".join(traceback.format_exc()))