mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 02:53:18 +01:00
Correcting the imports for HTTPException
This commit is contained in:
parent
9af88ad44d
commit
ed113ca844
@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
import urllib2
|
import urllib2
|
||||||
import urllib
|
import urllib
|
||||||
|
import httplib
|
||||||
import base64
|
import base64
|
||||||
import hmac
|
import hmac
|
||||||
import hashlib
|
import hashlib
|
||||||
@ -76,7 +77,7 @@ class cloudConnection(object):
|
|||||||
self.logging.critical("failed to reach %s because of %s"%(self.mgtSvr, e.reason))
|
self.logging.critical("failed to reach %s because of %s"%(self.mgtSvr, e.reason))
|
||||||
elif hasattr(e, 'code'):
|
elif hasattr(e, 'code'):
|
||||||
self.logging.critical("server returned %d error code"%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)
|
self.logging.debug("encountered http Exception %s"%h.args)
|
||||||
if self.retries > 0:
|
if self.retries > 0:
|
||||||
self.retries = self.retries - 1
|
self.retries = self.retries - 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user