python2.2: signals and exceptions: interrupted system call
Jakub Moscicki
moscicki at mail.cern.ch
Sat Oct 4 06:16:08 EDT 2003
> > 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.
Yes, you are right. Mea culpa. Too many hours against too many
lines of code ;)
kuba
--
-------------------------------------------------------------
mow mi KUBA call me KUBA appelle-moi KUBA
-------------------------------------------------------------
More information about the Python-list
mailing list