mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 07:03:08 +00:00
m1n1.shell: Don't save history if init failed
Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
This commit is contained in:
parent
3440aadc3c
commit
4a67fbe10e
1 changed files with 1 additions and 1 deletions
|
@ -188,8 +188,8 @@ def run_shell(locals, msg=None, exitmsg=None):
|
|||
if isinstance(clist, dict):
|
||||
clist[obj_name] = desc
|
||||
|
||||
con = HistoryConsole(locals)
|
||||
try:
|
||||
con = HistoryConsole(locals)
|
||||
con.interact(msg, exitmsg)
|
||||
except ExitConsole as e:
|
||||
if len(e.args):
|
||||
|
|
Loading…
Reference in a new issue