diff options
author | W. Trevor King <wking@drexel.edu> | 2012-02-25 15:47:58 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2012-02-25 15:47:58 -0500 |
commit | c767e14bc0a2bc36c852ba1e2639525ec274cd35 (patch) | |
tree | 069f39abab974226308a2d20abe9eff0558a1b44 /libbe | |
parent | 1ccb0019b16b064dfde1e320b7921c82e8409f5b (diff) | |
download | bugseverywhere-c767e14bc0a2bc36c852ba1e2639525ec274cd35.tar.gz |
I changed my mind and fixed #/03d07e61#.
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/ui/command_line.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py index d6e8d67..d6e820b 100644 --- a/libbe/ui/command_line.py +++ b/libbe/ui/command_line.py @@ -304,6 +304,9 @@ def dispatch(ui, command, args): except libbe.command.UserError, e: print >> ui.io.stdout, 'ERROR:\n', e return 1 + except OSError, e: + print >> ui.io.stdout, 'OSError:\n', e + return 1 except libbe.storage.ConnectionError, e: print >> ui.io.stdout, 'Connection Error:\n', e return 1 @@ -366,7 +369,12 @@ def main(): libbe.ui.util.pager.run_pager(paginate) ret = dispatch(ui, command, args) - ui.cleanup() + try: + ui.cleanup() + except IOError, e: + print >> ui.io.stdout, 'IOError:\n', e + return 1 + return ret if __name__ == '__main__': |