[pypy-svn] r42813 - pypy/dist/pypy/translator/js/examples

fijal at codespeak.net fijal at codespeak.net
Mon May 7 17:19:52 CEST 2007


Author: fijal
Date: Mon May  7 17:19:52 2007
New Revision: 42813

Modified:
   pypy/dist/pypy/translator/js/examples/overmind.py
Log:
Ugh. missing import in error recovery


Modified: pypy/dist/pypy/translator/js/examples/overmind.py
==============================================================================
--- pypy/dist/pypy/translator/js/examples/overmind.py	(original)
+++ pypy/dist/pypy/translator/js/examples/overmind.py	Mon May  7 17:19:52 2007
@@ -56,11 +56,13 @@
     bnb.exposed = True
 
     def handle_error(self, exc, e_value, tb):
+        import traceback
         tb_formatted = '\n'.join(traceback.format_tb(tb)) + \
                        "%s: %s" % (exc, e_value)
         log_file = open("/tmp/play1_error_log", "a")
         log_file.write(tb_formatted)
         log_file.close()
+        print tb_formatted
 
 class Handler(server.NewHandler):
     application = Root()



More information about the Pypy-commit mailing list