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. -- http://mail.python.org/mailman/listinfo/python-list
- Trying to chain processes together on a pipeline Andrew Berg
- Re: Trying to chain processes together on a pipeline Peter Otten
- Re: Trying to chain processes together on a pipelin... Andrew Berg
- Re: Trying to chain processes together on a pip... Chris Rebert
- Re: Trying to chain processes together on a pipelin... Andrew Berg
- Re: Trying to chain processes together on a pipelin... Peter Otten
- Re: Trying to chain processes together on a pip... Andrew Berg
- Re: Trying to chain processes together on a... Chris Rebert
- Re: Trying to chain processes together on a pipelin... Andrew Berg
- Re: Trying to chain processes together on a pipeline Thomas Rachel
- Re: Trying to chain processes together on a pipelin... Andrew Berg