Catching a specific IO error

Thomas Krüger see_signature at nospam.nowire.org
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:
http://docs.python.org/tut/node10.html#SECTION0010300000000000000000

Thomas


-- 
sinature: http://nospam.nowire.org/signature_usenet.png



More information about the Python-list mailing list