mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
fix console: python3 exec
This commit is contained in:
parent
6e936db94a
commit
e91aa882ba
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ class Console(QtWidgets.QPlainTextEdit):
|
||||||
self.appendPlainText(repr(result))
|
self.appendPlainText(repr(result))
|
||||||
except SyntaxError:
|
except SyntaxError:
|
||||||
# exec is generally considered bad practice. use it wisely!
|
# exec is generally considered bad practice. use it wisely!
|
||||||
exec(command) in self.namespace
|
exec(command, self.namespace, self.namespace)
|
||||||
except SystemExit:
|
except SystemExit:
|
||||||
self.close()
|
self.close()
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Add table
Reference in a new issue