[Tutor] How to catch a fatal error in Python 2.7?
ThreeBlindQuarks
threesomequarks at proton.me
Tue Dec 10 14:28:28 EST 2024
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 <tutor at python.org> 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 - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list