Let shell be ready for unexpected errors
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 7 Dec 2012 17:05:45 +0000 (19:05 +0200)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 7 Dec 2012 17:05:45 +0000 (19:05 +0200)
kamaki/cli/command_shell.py

index d7209e4..f7759da 100644 (file)
@@ -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()