[pypy-svn] r44385 - pypy/dist/dotviewer
arigo at codespeak.net
arigo at codespeak.net
Tue Jun 19 20:13:50 CEST 2007
Author: arigo
Date: Tue Jun 19 20:13:49 2007
New Revision: 44385
Modified:
pypy/dist/dotviewer/graphpage.py
Log:
Avoid the unnecessary traceback from a RemoteError.
Modified: pypy/dist/dotviewer/graphpage.py
==============================================================================
--- pypy/dist/dotviewer/graphpage.py (original)
+++ pypy/dist/dotviewer/graphpage.py Tue Jun 19 20:13:49 2007
@@ -24,13 +24,17 @@
def display(self):
"Display a graph page."
- import graphclient
- graphclient.display_page(self)
+ import graphclient, msgstruct
+ try:
+ graphclient.display_page(self)
+ except msgstruct.RemoteError, e:
+ import sys
+ print >> sys.stderr, "Exception in the graph viewer:", str(e)
def display_background(self):
"Display a graph page in a background thread."
- import graphclient, thread
- thread.start_new_thread(graphclient.display_page, (self,))
+ import thread
+ thread.start_new_thread(self.display, ())
class DotFileGraphPage(GraphPage):
More information about the Pypy-commit
mailing list