diff options
Diffstat (limited to 'kombu/messaging.py')
-rw-r--r-- | kombu/messaging.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/messaging.py b/kombu/messaging.py index e39625a3..c1e0f7de 100644 --- a/kombu/messaging.py +++ b/kombu/messaging.py @@ -538,7 +538,7 @@ class Consumer(object): if m2p: message = m2p(message) decoded = None if on_m else message.decode() - except Exception, exc: + except Exception as exc: if not self.on_decode_error: raise self.on_decode_error(message, exc) |