We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e759a commit 93d2397Copy full SHA for 93d2397
1 file changed
freqtrade/exchange/exchange.py
@@ -315,7 +315,7 @@ def close(self):
315
self._exchange_ws.cleanup()
316
logger.debug("Exchange object destroyed, closing async loop")
317
loop_running = (
318
- hasattr(self, "loop") and self.loop.is_running()
+ getattr(self, "loop", None) and self.loop.is_running()
319
) or asyncio.get_event_loop().is_running()
320
321
if (
0 commit comments