We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82e16dc commit 80f347dCopy full SHA for 80f347d
ably/realtime/realtime_channel.py
@@ -183,13 +183,14 @@ async def attach(self) -> None:
183
self.__error_reason = None
184
185
# RTL4b
186
- if self.__realtime.connection.state not in [
+ connection_state = self.__realtime.connection.state
187
+ if connection_state not in [
188
ConnectionState.CONNECTING,
189
ConnectionState.CONNECTED,
190
ConnectionState.DISCONNECTED
191
]:
192
raise AblyException(
- message=f"Unable to attach; channel state = {self.state}",
193
+ message=f"Unable to attach channel; connection state = {connection_state}",
194
code=90001,
195
status_code=400
196
)
0 commit comments