Aw: Re: How do you find what exceptions a class can throw?

Karsten Hilbert Karsten.Hilbert at gmx.net
Sun Dec 20 13:34:51 EST 2020


> > Remember, you get reporting (a traceback) and program cleanup and exit
> > for free.  What will catching an exception *add* to the user experience?
>
> If it's a timeout exception I'm going to delay a little while and then
> try again.  The timeout is probably because the server is busy.

So what you are looking for is the form of a potential
"timeout exception" (say, exception name) ?

Provoke one and have a look.

Then catch what you saw.

Karsten


More information about the Python-list mailing list