From ed113ca8445199a6adc246d3cbd5a249bb4b190e Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Mon, 23 Jul 2012 10:47:48 +0530 Subject: [PATCH] Correcting the imports for HTTPException --- tools/marvin/marvin/cloudstackConnection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/marvin/marvin/cloudstackConnection.py b/tools/marvin/marvin/cloudstackConnection.py index 37919c082fe..d70c192406e 100644 --- a/tools/marvin/marvin/cloudstackConnection.py +++ b/tools/marvin/marvin/cloudstackConnection.py @@ -17,6 +17,7 @@ import urllib2 import urllib +import httplib import base64 import hmac import hashlib @@ -76,7 +77,7 @@ class cloudConnection(object): self.logging.critical("failed to reach %s because of %s"%(self.mgtSvr, e.reason)) elif hasattr(e, 'code'): self.logging.critical("server returned %d error code"%e.code) - except HTTPException, h: + except httplib.HTTPException, h: self.logging.debug("encountered http Exception %s"%h.args) if self.retries > 0: self.retries = self.retries - 1