Skip to content

Commit d670e79

Browse files
fix: create websockets ConnectionClosed error correctly
1 parent 71f885b commit d670e79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

juju/model/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ def done():
11691169

11701170
await utils.block_until(done, timeout=timeout, wait_period=wait_period)
11711171
if _disconnected():
1172-
raise websockets.ConnectionClosed(1006, "no reason")
1172+
raise websockets.ConnectionClosed()
11731173

11741174
@property
11751175
def tag(self):

0 commit comments

Comments
 (0)