File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1010import tornado
1111import tornado .httpclient
1212
13- from tornado .concurrent import TracebackFuture
13+ from tornado .concurrent import Future
1414
1515from pusher .http import process_response
1616
@@ -30,13 +30,10 @@ def send_request(self, request):
3030 method = request .method
3131 data = request .body
3232 headers = {'Content-Type' : 'application/json' }
33- future = TracebackFuture ()
33+ 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 :
Original file line number Diff line number Diff line change 4747
4848 extras_require = {
4949 'aiohttp' : ['aiohttp>=0.20.0' ],
50- 'tornado' : ['tornado>=4 .0.0' ]
50+ 'tornado' : ['tornado>=5 .0.0' ]
5151 },
5252
5353 package_data = {
You can’t perform that action at this time.
0 commit comments