2 May
2020
2 May
'20
1:25 a.m.
On 05/01/2020 02:19 AM, Steven D'Aprano wrote:
Best practice is to put try...except around only a *single* operation which may raise what you want to catch. Of course that's easier said than done, especially since nearly anything can raise nearly anything.
The follow-on to that is to only catch what you can recover from.
But in practice, it is surprisingly more practical than it sounds in theory.
Since not every problem can be recovered from and therefore shouldn't be caught. -- ~Ethan~