summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/simple_receive.py1
-rw-r--r--examples/simple_task_queue/worker.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/simple_receive.py b/examples/simple_receive.py
index e15427e3..906c2742 100644
--- a/examples/simple_receive.py
+++ b/examples/simple_receive.py
@@ -1,6 +1,7 @@
"""
Example receiving a message using the SimpleQueue interface.
"""
+
from kombu import Connection
#: Create connection
diff --git a/examples/simple_task_queue/worker.py b/examples/simple_task_queue/worker.py
index 807542e9..d9fb691c 100644
--- a/examples/simple_task_queue/worker.py
+++ b/examples/simple_task_queue/worker.py
@@ -23,7 +23,7 @@ class Worker(ConsumerMixin):
logger.info('Got task: %s', reprcall(fun.__name__, args, kwargs))
try:
fun(*args, **kwdict(kwargs))
- except Exception as exc:
+ except Exception, exc:
logger.error('task raised exception: %r', exc)
message.ack()