use py3 compatible except syntax (#39569)

This commit is contained in:
Emmanuel Cazenave 2020-02-05 15:46:43 +01:00
parent 9cfbe22142
commit d367723451
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class MontpellierSig(BaseResource):
resp.status_code))
try:
return resp.json()
except Exception, e:
except Exception as e:
logger.warning('error occured while trying to read json data from %r: %r', endpoint, e)
return []