Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
f4a96ddb
Commit
f4a96ddb
authored
Jul 05, 2021
by
Matias Guijarro
Browse files
fix issue #2850
parent
348e90a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/shell/cli/repl.py
View file @
f4a96ddb
...
...
@@ -358,6 +358,8 @@ class BlissRepl(NoThreadPythonRepl, metaclass=Singleton):
# NB: next methods are overloaded
##
async
def
eval_async
(
self
,
text
):
logging
.
getLogger
(
"user_input"
).
info
(
text
)
elogbook
.
command
(
text
)
with
self
.
app
.
output
.
capture_stdout
:
result
=
await
super
().
eval_async
(
text
)
if
result
is
None
:
...
...
@@ -368,8 +370,6 @@ class BlissRepl(NoThreadPythonRepl, metaclass=Singleton):
try
:
if
hasattr
(
result
,
"__info__"
):
result
=
Info
(
result
)
logging
.
getLogger
(
"user_input"
).
info
(
result
)
elogbook
.
command
(
result
)
except
BaseException
:
# display exception, but do not propagate and make shell to die
sys
.
excepthook
(
*
sys
.
exc_info
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment