From 7d1a222501e2aa82a56027a2daa312cb6712da92 Mon Sep 17 00:00:00 2001 From: flan Date: Mon, 6 Nov 2017 17:06:45 +0100 Subject: [PATCH] Remove redundant except block ValueError is handled in _decode_data() already --- ankisyncd/sync_app.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index 589b2f7..155c2ff 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -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):]