summaryrefslogtreecommitdiff
path: root/client/src/leap
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-05-25 20:14:26 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-05-26 15:28:18 -0300
commit5feb66707d84d6644158b5c9b848628a4814610f (patch)
tree4f4818d12663660d3003381c1c00c077ff9fe2d3 /client/src/leap
parent97cd46960c7dacdda3739223fee129c672fef82e (diff)
[bug] Empty comes from Queue
When handling this exception Python got lost because the import was incorrect. Queue.Empty comes from Queue, not from multiprocessing.Queue
Diffstat (limited to 'client/src/leap')
-rw-r--r--client/src/leap/soledad/client/encdecpool.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py
index c0a05d38..d9a72b25 100644
--- a/client/src/leap/soledad/client/encdecpool.py
+++ b/client/src/leap/soledad/client/encdecpool.py
@@ -23,6 +23,7 @@ during synchronization.
import multiprocessing
+import Queue
import json
import logging
@@ -186,7 +187,7 @@ class SyncEncrypterPool(SyncEncryptDecryptPool):
try:
doc = self._sync_queue.get(True, self.ENCRYPT_LOOP_PERIOD)
self._encrypt_doc(doc)
- except multiprocessing.Queue.Empty:
+ except Queue.Empty:
pass
def _encrypt_doc(self, doc):