python2.2: signals and exceptions: interrupted system call

"Martin v. Löwis" martin at v.loewis.de
Sat Oct 4 05:50:44 EDT 2003


Jakub Moscicki wrote:

> A small problem: I get a signal during a system call (from xmlrpclib -> 
> httplib) and an exception "IOError: [Errno 4] Interrupted system call" is 
> raised (this is system dependant, on other machine it does not raise this 
> exception). I have my own signal handler so I want to simply ignore this 
> exception if it occures. But for a reason mysterious to me I cannot catch 
> this exception in the main's program try block.

I cannot find anything mysterious here: The exception is IOError, but 
you try to catch xmlrpclib.error, so you are not catching IOError, so 
raising IOError aborts your program.

Regards,
Martin





More information about the Python-list mailing list