Trying to chain processes together on a pipeline

Andrew Berg bahamutzero8825 at gmail.com
Tue Jun 28 04:09:04 EDT 2011


On 2011.06.28 02:44 AM, Thomas Rachel wrote:
> The way you work with the exception is not the very best - instead of 
> parsing the stringified exception, you better would trigger on 
> exc.winerror (it is an integer with the error number).
>
> Or, even better, just pas the error information contained in the exception:
>
> def handle_winerr(exc):
>      logger.critical('Could not execute %s: %s' %
>          (queue[position].sox_exe, exc.strerror))
I didn't see winerror and strerror in the docs before, but another look
and they are indeed documented. I brought up Windows error codes before,
and I'm surprised no one pointed this out. Thanks for that.



More information about the Python-list mailing list