Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit c3ac2ad

Browse files
committed
мини фикс
1 parent 6db38b4 commit c3ac2ad

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/pymax/mixins/websocket.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,11 @@ async def _send_and_wait(
151151
except asyncio.TimeoutError:
152152
self.logger.exception("Send and wait failed (opcode=%s, seq=%s)", opcode, msg["seq"])
153153
raise RuntimeError("Send and wait failed")
154-
except Exception:
155-
self.logger.exception("Send and wait failed (opcode=%s, seq=%s)", opcode, msg["seq"])
156-
raise RuntimeError("Send and wait failed")
154+
except Exception as e:
155+
self.logger.exception(
156+
f"Send and wait failed with exception {e}(opcode=%s, seq=%s)", opcode, msg["seq"]
157+
)
158+
raise RuntimeError(f"Send and wait failed with exception {e}")
157159
finally:
158160
self._pending.pop(seq_key, None)
159161

0 commit comments

Comments
 (0)