1
0

Various fixes for command line. Make 'payto' command require network (fixes #1525)

This commit is contained in:
ThomasV
2015-10-29 11:06:09 +01:00
parent 079cb311ec
commit bb7b0884e3
8 changed files with 36 additions and 33 deletions

View File

@@ -213,9 +213,10 @@ 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_json(result)
util.print_msg(result)
else:
self.appendPlainText(repr(result))
except SyntaxError: