How to trigger an Exception correctly ? #42
Closed
AlaaIssa-Epex
started this conversation in
General
Replies: 2 comments
|
Hi @AlaaIssa-Epex |
0 replies
|
Hello Taras,
Thank you so much, it's working great.
Thanks a lot for the amazing work.
Best Regards,
Alaa Issa
…________________________________
From: Taras Kozlov ***@***.***>
Sent: Thursday, June 5, 2025 6:27 PM
To: tarasko/picows ***@***.***>
Cc: Alaa ISSA ***@***.***>; Mention ***@***.***>
Subject: Re: [tarasko/picows] How to trigger an Exception correctly ? (Discussion #42)
Hi @AlaaIssa-Epex<https://github.com/AlaaIssa-Epex>
In 1.9.0 an exception is not swallowed anymore for client side websockets, it is transferred to and re-raised by wait_disconnected.
See https://github.com/tarasko/picows/blob/master/examples/reconnecting_client.py
—
Reply to this email directly, view it on GitHub<#42 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BJJAXWCOMM7JK2PYKN7MNNT3CBVXRAVCNFSM6AAAAAB4CMFQW2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMZYGE4TIMA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
First of all i would like to thank you so much for the amazing library, my question is i am struggling to throw an exception when something fails in on_ws_frame, my target is to stop execution (raise Exception('bla bla')), how to achieve that ?
All reactions