Clean up the exception handling. Lets --help work.

This commit is contained in:
Chris Johns 2012-11-10 16:10:30 +11:00
parent 0f58d47121
commit 6e10a49c8b

View File

@ -150,6 +150,11 @@ def run():
except error.internal, ierr: except error.internal, ierr:
print ierr print ierr
sys.exit(1) sys.exit(1)
except error.exit, eerr:
pass
except KeyboardInterrupt:
_notice(opts, 'user terminated')
sys.exit(1)
sys.exit(0) sys.exit(0)