We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 221105f commit 412a339Copy full SHA for 412a339
gdax/orderbook.py
@@ -93,11 +93,11 @@ async def __aenter__(self):
93
return self
94
95
async def __aexit__(self, exc_type, exc, traceback):
96
- tasks = [self._ws_session.__aexit__(exc_type, exc, traceback)]
97
- if self.trade_log_file_path is not None:
98
- tasks.append(self._close_log_file())
99
- res = await asyncio.gather(*tasks)
100
- return tasks[0]
+ res = await asyncio.gather(
+ self._ws_session.__aexit__(exc_type, exc, traceback),
+ self._close_log_file(),
+ )
+ return res[0]
101
102
async def _open_log_file(self):
103
if self.trade_log_file_path is not None:
0 commit comments