electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 55fafc35c11298cd0469271358c65262cf2935ee
parent 1abc5412cd924bd2ae65cb608022e460227272e2
Author: ThomasV <thomasv@electrum.org>
Date:   Mon,  9 Nov 2015 16:09:57 +0100

fix json_encode with python console

Diffstat:
Mgui/qt/console.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gui/qt/console.py b/gui/qt/console.py @@ -213,10 +213,9 @@ class Console(QtGui.QPlainTextEdit): try: # eval is generally considered bad practice. use it wisely! result = eval(command, self.namespace, self.namespace) - result = util.json_encode(result) if result != None: if self.is_json: - util.print_msg(result) + util.print_msg(util.json_encode(result)) else: self.appendPlainText(repr(result)) except SyntaxError: