Skip to content

Commit dd1d38b

Browse files
authored
Merge pull request #199 from nextsnake/tag-epic/docs/fix-gateway-example
Fix ping pong example error callback
2 parents e336023 + f51f6ca commit dd1d38b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/gateway/ping_pong.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ async def main():
7171
await shard_manager.connect()
7272

7373
# Raise a error and exit whenever a critical error occurs
74-
error = await shard_manager.dispatcher.wait_for(lambda: True, "critical")
74+
(error,) = await shard_manager.dispatcher.wait_for(lambda: True, "critical")
7575

7676
raise cast(Exception, error)
7777

0 commit comments

Comments
 (0)