diff options
Diffstat (limited to 'examples/simple_eventlet_receive.py')
-rw-r--r-- | examples/simple_eventlet_receive.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/simple_eventlet_receive.py b/examples/simple_eventlet_receive.py index d70126df..f353d1c0 100644 --- a/examples/simple_eventlet_receive.py +++ b/examples/simple_eventlet_receive.py @@ -8,8 +8,6 @@ message sent. """ import eventlet -from Queue import Empty - from kombu import Connection eventlet.monkey_patch() @@ -32,7 +30,7 @@ def wait_many(timeout=1): while True: try: message = queue.get(block=False, timeout=timeout) - except Empty: + except queue.Empty: break else: message.ack() |