Catching a specific IO error

Thomas Krüger see_signature at
Tue Apr 24 07:52:44 EDT 2007

Tina I schrieb:
> Now, this works but of course it catches every IOError, and I can not
> figure out how to restrict it to only catch the "[Errno 2]"?

There's an example that uses the error number:



More information about the Python-list mailing list