Re: How to catch a fatal error in Python 2.7?

ThreeBlindQuarks via Tutor <[email protected]> Tue, 10 Dec 2024 19:28:28 +0000
Newsgroups gmane.comp.python.tutor,gmane.comp.python.general
Message-ID <rWEkdSpDQb32i-l_W3sxFze5ilKVjBdzVkuJfFmJnLBfVynLKz7fHlK2m7bDzJnru0NzQJN40DpbP8sMTGdNeEOLDRqi0CwBewXWdBtpogI=@proton.me>
Hard to answer something vague and especially for a largely abandoned version of python.

Even wrapping a function call in a try...catch may not work if a deeper level does not pass along an exception and something panics close to the hardware level.



Sent with Proton Mail secure email.

On Monday, December 9th, 2024 at 2:19 PM, marc nicole via Tutor <[email protected]> wrote:

> Hello,
> 
> The fatal error exits the program with a code -1 while referencing the
> memory address involved and nothing else.
> 
> How to catch it in Python 2.7?
> 
> PS: please not I am not talking about exceptions but an error resulting
> from the disconnection of my bluetooth microphone abruptly and leading to
> the halting of the whole program, I need to be able to do something when it
> occurs.
> 
> Thanks for the help!
> _______________________________________________
> Tutor maillist - [email protected]
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor