mirror of https://github.com/apache/cloudstack.git
Correcting the imports for HTTPException
This commit is contained in:
parent
08bd7c31b4
commit
fc580da2e8
|
|
@ -12,6 +12,7 @@
|
|||
# Automatically generated by addcopyright.py at 04/03/2012
|
||||
import urllib2
|
||||
import urllib
|
||||
import httplib
|
||||
import base64
|
||||
import hmac
|
||||
import hashlib
|
||||
|
|
@ -71,7 +72,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
|
||||
|
|
|
|||
Loading…
Reference in New Issue