diff options
author | W. Trevor King <wking@drexel.edu> | 2012-02-25 12:04:01 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2012-02-25 12:04:06 -0500 |
commit | 17a470e5672d2f4ec2fc6d757a52612c21753ee8 (patch) | |
tree | be74f38efc9960825762f318d6dfb3e9b80ac23c | |
parent | f1ae4b7f3fea6fb78a54ee5073aee648a3d73179 (diff) | |
download | bugseverywhere-17a470e5672d2f4ec2fc6d757a52612c21753ee8.tar.gz |
Hide the traceback on InvalidURL errors.
In response to
https://bugzilla.redhat.com/show_bug.cgi?id=733945
in which Neal Becker was bummed at the long traceback, which may
initially look like a programming issue.
-rw-r--r-- | libbe/ui/command_line.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py index 59a9560..3a5f5c4 100644 --- a/libbe/ui/command_line.py +++ b/libbe/ui/command_line.py @@ -28,6 +28,8 @@ import libbe import libbe.bugdir import libbe.command import libbe.command.util +import libbe.storage +import libbe.storage.http import libbe.version import libbe.ui.util.pager import libbe.util.encoding @@ -305,6 +307,9 @@ def dispatch(ui, command, args): except libbe.storage.ConnectionError, e: print >> ui.io.stdout, 'Connection Error:\n', e return 1 + except libbe.storage.http.InvalidURL, e: + print >> ui.io.stdout, 'Invalid URL:\n', e + return 1 except (libbe.util.id.MultipleIDMatches, libbe.util.id.NoIDMatches, libbe.util.id.InvalidIDStructure), e: print >> ui.io.stdout, 'Invalid id:\n', e |