Skip to content

Commit e30865e

Browse files
committed
asycio.Future does not have .exc_info()
1 parent d1c7a32 commit e30865e

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

docs/history.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
3.21.0
5+
------
6+
7+
- Don't expect asyncio's Futures to have `exc_info()`.
8+
49
3.20.0
510
------
611

rejected/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
__author__ = 'Gavin M. Roy <gavinmroy@gmail.com>'
2020
__since__ = '2009-09-10'
21-
__version__ = '3.20.0'
21+
__version__ = '3.20.1'
2222

2323
__all__ = [
2424
'__author__',

rejected/consumer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,10 @@ def execute(self, message_in, measurement):
962962
exc_info = sys.exc_info()
963963
if concurrent.is_future(result):
964964
error = result.exception()
965-
exc_info = result.exc_info()
965+
try:
966+
exc_info = result.exc_info()
967+
except AttributeError:
968+
pass
966969
self.log_exception('Exception processing delivery %s: %s',
967970
message_in.delivery_tag, str(error),
968971
exc_info=exc_info)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def read_requirements(name):
2626

2727
setuptools.setup(
2828
name='rejected',
29-
version='3.20.0',
29+
version='3.20.1',
3030
description='Rejected is a Python RabbitMQ Consumer Framework and '
3131
'Controller Daemon',
3232
long_description=open('README.rst').read(),

0 commit comments

Comments
 (0)