[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - connection.py:1.19
Jeremy Hylton
jeremy@zope.com
Wed, 11 Sep 2002 17:27:02 -0400
Update of /cvs-repository/ZODB3/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv4986
Modified Files:
connection.py
Log Message:
Oops. The type test is necessary. issubclass() can raise a TypeError.
=== ZODB3/ZEO/zrpc/connection.py 1.18 => 1.19 ===
--- ZODB3/ZEO/zrpc/connection.py:1.18 Wed Sep 11 17:21:24 2002
+++ ZODB3/ZEO/zrpc/connection.py Wed Sep 11 17:27:02 2002
@@ -306,6 +306,7 @@
assert r_msgid == msgid, "%s != %s: %s" % (r_msgid, msgid, r_args)
if (isinstance(r_args, types.TupleType)
+ and type(r_args[0]) == types.ClassType
and issubclass(r_args[0], Exception)):
inst = r_args[1]
raise inst # error raised by server