Commit c205d437 authored by Jeremy Hylton's avatar Jeremy Hylton

Raise DisconnectedError consistently.

parent 6629a3f6
...@@ -290,7 +290,7 @@ class Connection(smac.SizedMessageAsyncConnection): ...@@ -290,7 +290,7 @@ class Connection(smac.SizedMessageAsyncConnection):
def _call(self, method, args): def _call(self, method, args):
if self.closed: if self.closed:
raise DisconnectedError("This action is temporarily unavailable") raise DisconnectedError()
msgid = self.msgid msgid = self.msgid
self.msgid = self.msgid + 1 self.msgid = self.msgid + 1
if __debug__: if __debug__:
...@@ -322,7 +322,7 @@ class Connection(smac.SizedMessageAsyncConnection): ...@@ -322,7 +322,7 @@ class Connection(smac.SizedMessageAsyncConnection):
def _callAsync(self, method, args): def _callAsync(self, method, args):
if self.closed: if self.closed:
raise DisconnectedError("This action is temporarily unavailable") raise DisconnectedError()
msgid = self.msgid msgid = self.msgid
self.msgid += 1 self.msgid += 1
if __debug__: if __debug__:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment