use py3 compatible except syntax (#39569)
This commit is contained in:
parent
9cfbe22142
commit
d367723451
|
@ -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 []
|
||||
|
||||
|
|
Loading…
Reference in New Issue