From 544b0ff28c654a7c21832d47f34861c3cfbfc26d Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 2 Jun 2015 08:34:01 -0300 Subject: [bug] use exception from correct module Queue exceptions are not in multiprocessing.Queue module, but in plain Queue instead. --- client/src/leap/soledad/client/encdecpool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/src') diff --git a/client/src/leap/soledad/client/encdecpool.py b/client/src/leap/soledad/client/encdecpool.py index 60b8d8ef..e73792ea 100644 --- a/client/src/leap/soledad/client/encdecpool.py +++ b/client/src/leap/soledad/client/encdecpool.py @@ -172,7 +172,7 @@ class SyncEncrypterPool(SyncEncryptDecryptPool): """ try: self._sync_queue.put_nowait(doc) - except multiprocessing.Queue.Full: + except Queue.Full: # do not asynchronously encrypt this file if the queue is full pass -- cgit v1.2.3