Syntax correction for Python 3.4 and 3.5

This commit is contained in:
Jan Beran 2016-08-17 22:01:09 +02:00 committed by GitHub
parent 574009e375
commit 8341ad217c

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