[Python-checkins] python/dist/src/Lib/idlelib rpc.py,1.30,1.31

kbk at users.sourceforge.net kbk at users.sourceforge.net
Thu Dec 23 05:39:57 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17234

Modified Files:
	rpc.py 
Log Message:
Improve error message if rpc'l localcall() fails with unexpected
exception.


Index: rpc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/rpc.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- rpc.py	21 Dec 2004 22:10:32 -0000	1.30
+++ rpc.py	23 Dec 2004 04:39:55 -0000	1.31
@@ -199,7 +199,9 @@
         except socket.error:
             raise
         except:
-            self.debug("localcall:EXCEPTION")
+            msg = "*** Internal Error: rpc.py:SocketIO.localcall()\n\n"\
+                  " Object: %s \n Method: %s \n Args: %s\n"
+            print>>sys.__stderr__, msg % (oid, method, args)
             traceback.print_exc(file=sys.__stderr__)
             return ("EXCEPTION", None)
 



More information about the Python-checkins mailing list