Skip to content

Commit

Permalink
fix: add back return statements for closed streams (#356)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgautier404 authored Jul 17, 2023
1 parent df6c9d0 commit f2c9376
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/prepy310/topic_subscribe_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async def poll_subscription(subscription: TopicSubscribe.SubscriptionAsync):
elif isinstance(item, TopicSubscriptionItem.Error):
print("stream closed")
print(item.inner_exception.message)

return

if __name__ == "__main__":
asyncio.run(main())
2 changes: 1 addition & 1 deletion examples/py310/topic_subscribe_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def poll_subscription(subscription: TopicSubscribe.SubscriptionAsync):
case TopicSubscriptionItem.Error():
print("stream closed")
print(item.inner_exception.message)

return

if __name__ == "__main__":
asyncio.run(main())
Expand Down

0 comments on commit f2c9376

Please sign in to comment.