[pypy-svn] r27907 - pypy/dist/pypy/translator/tool
arigo at codespeak.net
arigo at codespeak.net
Tue May 30 13:07:33 CEST 2006
Author: arigo
Date: Tue May 30 13:07:32 2006
New Revision: 27907
Modified:
pypy/dist/pypy/translator/tool/pdbplus.py
Log:
Don't crash at the end of translation if pygame is not available.
Modified: pypy/dist/pypy/translator/tool/pdbplus.py
==============================================================================
--- pypy/dist/pypy/translator/tool/pdbplus.py (original)
+++ pypy/dist/pypy/translator/tool/pdbplus.py Tue May 30 13:07:32 2006
@@ -440,7 +440,12 @@
port = engraph.port
else:
return
- start, show, stop = server_setup(port)
+ try:
+ start, show, stop = server_setup(port)
+ except Exception, e:
+ print '%s.%s: %s' % (e.__class__.__module__,
+ e.__class__.__name__, e)
+ return self.start(tb, server_setup, graphic=False)
self.install_show(show)
debugger = self._run_debugger_in_thread(tb, stop)
debugger.start()
More information about the Pypy-commit
mailing list