projects
/
kamaki
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e0f2e5
)
Let shell be ready for unexpected errors
author
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Fri, 7 Dec 2012 17:05:45 +0000
(19:05 +0200)
committer
Stavros Sachtouris
<saxtouri@admin.grnet.gr>
Fri, 7 Dec 2012 17:05:45 +0000
(19:05 +0200)
kamaki/cli/command_shell.py
patch
|
blob
|
history
diff --git
a/kamaki/cli/command_shell.py
b/kamaki/cli/command_shell.py
index
d7209e4
..
f7759da
100644
(file)
--- a/
kamaki/cli/command_shell.py
+++ b/
kamaki/cli/command_shell.py
@@
-241,4
+241,8
@@
class Shell(Cmd):
self.set_prompt(intro)
- self.cmdloop()
+ try:
+ self.cmdloop()
+ except Exception:
+ from traceback import print_stack
+ print_stack()