Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197048

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

From Michael Torrie <torriem@gmail.com>
Newsgroups comp.lang.python
Subject Re: How to catch a fatal error in Python 2.7?
Date 2024-12-09 12:38 -0700
Message-ID <mailman.12.1733773130.2965.python-list@python.org> (permalink)
References <CAGJtH9RSph6W6tMePZYdYPCEmgL22VoDLMjfGWdjq=H+6hMR7g@mail.gmail.com> <6190ce2a-a5bf-6872-1714-e1f8677e0add@gmail.com>

Show all headers | View raw


On 12/9/24 12:19 PM, marc nicole via Python-list 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?

Does the problem occur with Python 3.x?  At this date, Python 2.7 is
only supported by your vendor if you are using an enterprise Linux
distribution.

I don't think there is a way to recover from that error in your python
script.  It could be a bug in the Python interpreter (which will never
be fixed in 2.7), or it could be a bug in a library somewhere. The
latter is most likely.  There's nothing you can do about it from a
Python script to recover.

> 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!

Back to comp.lang.python | Previous | Next | Find similar


Thread

Re: How to catch a fatal error in Python 2.7? Michael Torrie <torriem@gmail.com> - 2024-12-09 12:38 -0700

csiph-web