fix: improved check for emc due to type

This commit is contained in:
Matthias
2026-04-04 09:09:16 +02:00
parent 4ddb7fd43f
commit 3a76235c48
+1 -1
View File
@@ -220,7 +220,7 @@ class FreqtradeBot(LoggingMixin):
if getattr(self, "rpc", None):
self.rpc.cleanup()
if getattr(self, "emc", None):
if hasattr(self, "emc") and self.emc:
self.emc.shutdown()
if getattr(self, "exchange", None):
self.exchange.close()