From b11cb11d95a99c31747dd1f2021d370311e8b81b Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 5 May 2019 17:59:45 +0200 Subject: [PATCH] qt console: failed to print certain objects with custom __eq__ --- electrum/gui/qt/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/console.py b/electrum/gui/qt/console.py index 0f0141ac1..3971ad696 100644 --- a/electrum/gui/qt/console.py +++ b/electrum/gui/qt/console.py @@ -252,7 +252,7 @@ class Console(QtWidgets.QPlainTextEdit): try: # eval is generally considered bad practice. use it wisely! result = eval(command, self.namespace, self.namespace) - if result != None: + if result is not None: if self.is_json: util.print_msg(util.json_encode(result)) else: