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
4dfeda81
Commit
4dfeda81
authored
May 21, 2021
by
Matias Guijarro
Browse files
fix issue
#2774
parent
e91b65b2
Pipeline
#47131
passed with stages
in 108 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bliss/shell/cli/repl.py
View file @
4dfeda81
...
...
@@ -365,11 +365,16 @@ class BlissRepl(NoThreadPythonRepl, metaclass=Singleton):
# NB: next methods are overloaded
##
def
show_result
(
self
,
result
):
if
hasattr
(
result
,
"__info__"
):
result
=
Info
(
result
)
logging
.
getLogger
(
"user_input"
).
info
(
result
)
elogbook
.
command
(
result
)
return
super
().
show_result
(
result
)
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
())
else
:
return
super
().
show_result
(
result
)
def
_handle_keyboard_interrupt
(
self
,
e
:
KeyboardInterrupt
)
->
None
:
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