Fix dnsmadeeasy module to pass py3 sanity check

This commit is contained in:
Michael Scherer 2016-10-17 15:44:20 +02:00 committed by Matt Clay
commit 2ceb672016
2 changed files with 3 additions and 3 deletions

View file

@ -121,7 +121,8 @@ try:
from time import strftime, gmtime
import hashlib
import hmac
except ImportError, e:
except ImportError:
e = get_exception()
IMPORT_ERROR = str(e)
class DME2:
@ -170,7 +171,7 @@ class DME2:
try:
return json.load(response)
except Exception, e:
except Exception:
return {}
def getDomain(self, domain_id):