Merge pull request #417 from ari3s/patch-1

Syntax correction for Python 3.4 and 3.5
This commit is contained in:
Ross Poulton 2016-08-22 14:24:29 +10:00 committed by GitHub
commit baab36653e

View File

@ -133,7 +133,7 @@ class Akismet(object):
def _safeRequest(self, url, data, headers):
try:
resp = _fetch_url(url, data, headers)
except Exception, e:
except Exception as e:
raise AkismetError(str(e))
return resp