summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/handler/collector.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/xmlstream/handler/collector.py')
-rw-r--r--slixmpp/xmlstream/handler/collector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/xmlstream/handler/collector.py b/slixmpp/xmlstream/handler/collector.py
index 03868187..d9e20279 100644
--- a/slixmpp/xmlstream/handler/collector.py
+++ b/slixmpp/xmlstream/handler/collector.py
@@ -10,8 +10,8 @@
"""
import logging
+from queue import Queue, Empty
-from slixmpp.util import Queue, QueueEmpty
from slixmpp.xmlstream.handler.base import BaseHandler
@@ -59,7 +59,7 @@ class Collector(BaseHandler):
try:
while True:
results.append(self._payload.get(False))
- except QueueEmpty:
+ except Empty:
pass
self.stream().remove_handler(self.name)