Browse Source

Print memento traceback on stdout

John Tyree 11 years ago
parent
commit
9722b48989
1 changed files with 2 additions and 2 deletions
  1. 2 2
      memento.py

+ 2 - 2
memento.py

@@ -91,7 +91,7 @@ if __name__ == '__main__':
         n.DoStuff()
     except:
         print('-> doing stuff failed!')
-        import traceback
-        traceback.print_exc(0)
+        import sys, traceback
+        traceback.print_exc(file=sys.stdout)
         pass
     print(n)