mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
qt console: failed to print certain objects with custom __eq__
This commit is contained in:
parent
f38eed2fad
commit
b11cb11d95
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ class Console(QtWidgets.QPlainTextEdit):
|
||||||
try:
|
try:
|
||||||
# eval is generally considered bad practice. use it wisely!
|
# eval is generally considered bad practice. use it wisely!
|
||||||
result = eval(command, self.namespace, self.namespace)
|
result = eval(command, self.namespace, self.namespace)
|
||||||
if result != None:
|
if result is not None:
|
||||||
if self.is_json:
|
if self.is_json:
|
||||||
util.print_msg(util.json_encode(result))
|
util.print_msg(util.json_encode(result))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue