automated change using python-modernize: use 'as' in except

This commit is contained in:
Thomas Waldmann 2013-05-18 16:24:40 +02:00
parent 521398d5e7
commit 6caaa8a527
12 changed files with 32 additions and 32 deletions

View file

@ -101,7 +101,7 @@ class Request(RequestBase):
if request_charset is not None:
return json.loads(self.data, encoding=request_charset)
return json.loads(self.data)
except ValueError, e:
except ValueError as e:
return self.on_json_loading_failed(e)
def on_json_loading_failed(self, e):