Skip to content

Commit 6134914

Browse files
committed
No longer check exc_info on the future
I think checking exception() is sufficient
1 parent 324a9c6 commit 6134914

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pusher/tornado.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ def send_request(self, request):
3333
future = Future()
3434

3535
def process_response_future(response):
36-
if response.exc_info() is not None:
37-
future.set_exc_info(response.exc_info())
38-
39-
elif response.exception() is not None:
36+
if response.exception() is not None:
4037
future.set_exception(response.exception())
4138

4239
else:

0 commit comments

Comments
 (0)