Remove redundant except block

ValueError is handled in _decode_data() already
This commit is contained in:
flan 2017-11-06 17:06:45 +01:00
parent e97a11edb4
commit 7d1a222501

View File

@ -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):]