summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorBruno Wagner <bwgpro@gmail.com>2015-08-05 16:43:19 -0300
committerBruno Wagner <bwgpro@gmail.com>2015-08-05 16:45:37 -0300
commit66f07534a611056214e4f8b02e0143944b816c39 (patch)
tree88b348108da79fa6bdbafba493483015a09c6e9d /client/src
parent2824858b15b3dc10737ce2cc159bbe8d955bdaa5 (diff)
[tests] Created a setup for the http target tests
Created a setup for the http target tests Fixed two tests relying on http target that were outdated Fixed a call for an exception that doesn't exist, it won't break anymore if it gets to that exception
Diffstat (limited to 'client/src')
-rw-r--r--client/src/leap/soledad/client/http_target.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/http_target.py b/client/src/leap/soledad/client/http_target.py
index f7f50af6..f5d8ef1c 100644
--- a/client/src/leap/soledad/client/http_target.py
+++ b/client/src/leap/soledad/client/http_target.py
@@ -534,7 +534,7 @@ class SoledadHTTPSyncTarget(SyncTarget):
new_generation = metadata['new_generation']
new_transaction_id = metadata['new_transaction_id']
number_of_changes = metadata['number_of_changes']
- except (json.JSONDecodeError, KeyError):
+ except (ValueError, KeyError):
raise errors.BrokenSyncStream
# make sure we have replica_uid from fresh new dbs
if self._ensure_callback and 'replica_uid' in metadata: