You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2012/11/29 01:01:19 UTC
[50/50] [abbrv] git commit: cli: Handle badline http error
cli: Handle badline http error
Signed-off-by: Rohit Yadav <bh...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/3e8655b5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/3e8655b5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/3e8655b5
Branch: refs/heads/api_refactoring
Commit: 3e8655b580d5be1469b6bf1745c34392748f4fb8
Parents: 55447c2
Author: Rohit Yadav <bh...@apache.org>
Authored: Wed Nov 21 18:26:42 2012 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Wed Nov 21 18:27:11 2012 +0530
----------------------------------------------------------------------
tools/cli/cloudmonkey/cloudmonkey.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/3e8655b5/tools/cli/cloudmonkey/cloudmonkey.py
----------------------------------------------------------------------
diff --git a/tools/cli/cloudmonkey/cloudmonkey.py b/tools/cli/cloudmonkey/cloudmonkey.py
index 657af1f..8ceba4a 100644
--- a/tools/cli/cloudmonkey/cloudmonkey.py
+++ b/tools/cli/cloudmonkey/cloudmonkey.py
@@ -35,6 +35,7 @@ try:
from clint.textui import colored
from ConfigParser import ConfigParser, SafeConfigParser
from urllib2 import HTTPError, URLError
+ from httplib import BadStatusLine
from common import __version__, config_file, config_fields
from common import grammar, precached_verbs
@@ -205,7 +206,7 @@ class CloudStackShell(cmd.Cmd):
self.print_shell("API Error:", e)
except HTTPError, e:
self.print_shell(e)
- except URLError, e:
+ except (URLError, BadStatusLine), e:
self.print_shell("Connection Error:", e)
logger.debug("====END Request====\n")