From 21691de95d1755d4c0a139c09269ffb5809ffd24 Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Thu, 6 Jan 2022 17:32:07 +0530 Subject: [PATCH] Updated queues --- src/queues.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/queues.py b/src/queues.py index 4a9b98d2..d86d36fa 100644 --- a/src/queues.py +++ b/src/queues.py @@ -8,7 +8,13 @@ from six.moves import queue try: from multiqueue import MultiQueue except ImportError: - from .multiqueue import MultiQueue + try: + from .multiqueue import MultiQueue + except ImportError: + import sys + if 'bitmessagemock' not in sys.modules: + raise + MultiQueue = queue.Queue class ObjectProcessorQueue(queue.Queue):