aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/ui/command_line.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-08-24 07:55:48 -0400
committerW. Trevor King <wking@tremily.us>2012-08-24 08:03:35 -0400
commit3e8b3e08cd9cbb99b44376a91fcfbef42ee3888e (patch)
tree81a9af899e36d5814de62188794692138e1cf726 /libbe/ui/command_line.py
parentcaa79365295a4e7c1d46336ae0e1e839e865cfde (diff)
downloadbugseverywhere-3e8b3e08cd9cbb99b44376a91fcfbef42ee3888e.tar.gz
util:http: pull HTTP helpers from libbe.storage.http into their own module.
This way they can be shared with the upcoming Command._run_remote.
Diffstat (limited to 'libbe/ui/command_line.py')
-rw-r--r--libbe/ui/command_line.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py
index d6e820b..164d2c7 100644
--- a/libbe/ui/command_line.py
+++ b/libbe/ui/command_line.py
@@ -29,10 +29,10 @@ 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
+import libbe.util.http
if libbe.TESTING == True:
@@ -310,8 +310,8 @@ 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
+ except libbe.util.http.HTTPError, e:
+ print >> ui.io.stdout, 'HTTP Error:\n', e
return 1
except (libbe.util.id.MultipleIDMatches, libbe.util.id.NoIDMatches,
libbe.util.id.InvalidIDStructure), e: