From 3a76235c489a26b08fff6ba1d727492d31841bb2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 4 Apr 2026 09:09:16 +0200 Subject: [PATCH] fix: improved check for emc due to type --- freqtrade/freqtradebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index a9cc8cd1f..2b4d6c8ff 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -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()