Skip to content

Commit 479d75f

Browse files
fix: create websockets ConnectionClosed error correctly
1 parent ccfff3a commit 479d75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)