diff options
author | Ask Solem <ask@celeryproject.org> | 2013-02-12 15:06:49 +0000 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2013-02-12 15:06:49 +0000 |
commit | d84c1fca5b7fb50610f90f2447ba30d9641e5fb4 (patch) | |
tree | bc0dce413c67f819471f2b7491dc69f2d3d93440 /examples | |
parent | 4579fb1bf175a49ebd50102f08b1231e4029fbe4 (diff) | |
download | kombu-d84c1fca5b7fb50610f90f2447ba30d9641e5fb4.tar.gz |
Use except as exc
Diffstat (limited to 'examples')
-rw-r--r-- | examples/simple_task_queue/worker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/simple_task_queue/worker.py b/examples/simple_task_queue/worker.py index d9fb691c..807542e9 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, exc: + except Exception as exc: logger.error('task raised exception: %r', exc) message.ack() |