forked from orbit-oss/flask
Merge pull request #732 from ThomasWaldmann/exceptions_as
automated change using python-modernize: use 'as' in except
This commit is contained in:
commit
bbdfc83902
12 changed files with 32 additions and 32 deletions
|
|
@ -99,7 +99,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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue