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.
2 parents e336023 + f51f6ca commit dd1d38bCopy full SHA for dd1d38b
examples/gateway/ping_pong.py
@@ -71,7 +71,7 @@ async def main():
71
await shard_manager.connect()
72
73
# Raise a error and exit whenever a critical error occurs
74
- error = await shard_manager.dispatcher.wait_for(lambda: True, "critical")
+ (error,) = await shard_manager.dispatcher.wait_for(lambda: True, "critical")
75
76
raise cast(Exception, error)
77
0 commit comments