[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - connection.py:1.46

Jeremy Hylton jeremy at zope.com
Tue Apr 22 16:14:22 EDT 2003


Update of /cvs-repository/ZODB3/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv31453/ZEO/zrpc

Modified Files:
	connection.py 
Log Message:
Be prepared for a call that returns an empty tuple.


=== ZODB3/ZEO/zrpc/connection.py 1.45 => 1.46 ===
--- ZODB3/ZEO/zrpc/connection.py:1.45	Fri Jan 24 09:32:44 2003
+++ ZODB3/ZEO/zrpc/connection.py	Tue Apr 22 15:14:21 2003
@@ -341,7 +341,7 @@
             raise DisconnectedError()
         msgid = self.send_call(method, args, 0)
         r_flags, r_args = self.wait(msgid)
-        if (isinstance(r_args, types.TupleType)
+        if (isinstance(r_args, types.TupleType) and len(r_args) > 1
             and type(r_args[0]) == types.ClassType
             and issubclass(r_args[0], Exception)):
             inst = r_args[1]




More information about the Zodb-checkins mailing list