diff options
-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 |