From a1c02e2c45307e0f1500593ef4937a772215e7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Verret?= Date: Tue, 24 Nov 2020 15:24:44 -0500 Subject: [PATCH] Fix daemon being treated as a function (#6771) daemon was improperly turned into a function in the Python console. Point daemon to window.gui_object.daemon instead. --- electrum/gui/qt/main_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index 41573bfdd..b252770a9 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -2143,7 +2143,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): self.password_dialog, **{**kwargs, 'wallet': self.wallet}) for m in dir(c): - if m[0]=='_' or m in ['network','wallet','config']: continue + if m[0]=='_' or m in ['network','wallet','config','daemon']: continue methods[m] = mkfunc(c._run, m) console.updateNamespace(methods)