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):