Remove redundant except block
ValueError is handled in _decode_data() already
This commit is contained in:
parent
e97a11edb4
commit
7d1a222501
@ -499,9 +499,6 @@ class SyncApp:
|
||||
data = self._decode_data(data, compression)
|
||||
except KeyError:
|
||||
data = {}
|
||||
except ValueError:
|
||||
# Bad JSON
|
||||
raise HTTPBadRequest()
|
||||
|
||||
if req.path.startswith(self.base_url):
|
||||
url = req.path[len(self.base_url):]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user