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

Jeremy Hylton jeremy@zope.com
Wed, 11 Sep 2002 17:28:39 -0400


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

Modified Files:
	connection.py 
Log Message:
Raise DisconnectedError consistently.


=== ZODB3/ZEO/zrpc/connection.py 1.19 => 1.20 ===
--- ZODB3/ZEO/zrpc/connection.py:1.19	Wed Sep 11 17:27:02 2002
+++ ZODB3/ZEO/zrpc/connection.py	Wed Sep 11 17:28:39 2002
@@ -290,7 +290,7 @@
 
     def _call(self, method, args):
         if self.closed:
-            raise DisconnectedError("This action is temporarily unavailable")
+            raise DisconnectedError()
         msgid = self.msgid
         self.msgid = self.msgid + 1
         if __debug__:
@@ -322,7 +322,7 @@
 
     def _callAsync(self, method, args):
         if self.closed:
-            raise DisconnectedError("This action is temporarily unavailable")
+            raise DisconnectedError()
         msgid = self.msgid
         self.msgid += 1
         if __debug__: