[IronPython] IP1.1.2 - Exception Catching

Davy Mitchell daftspaniel at gmail.com
Wed Jan 14 13:18:07 CET 2009


Thanks for the reply Christian.
I have tracked down my issue - only occurring on French 2003 :-)

        Unable to translate bytes [E9] at index 16 from specified code page
to Unicode.

Which is fair enough so I can toughen up the logging and move on.

Thanks,
Davy Mitchell

On Wed, Jan 14, 2009 at 12:11 PM, Christian Muirhead <
christian.muirhead at resolversystems.com> wrote:

> Davy Mitchell wrote:
>
>> I am running a simple script to configure IIS using
>> System.DirectoryServices and it has been running well for months.
>> The whole thing is wrapped in a try i.e.
>>
>> try:
>>    ...
>> except Exception, inst:
>>    ... # write to log file.
>>
>> I've had a single execution (trying to reproduce) that caused the script
>> to stop mid-way thru but not record any exception. Now it could be the
>> logging failed somehow but I am wondering if 'except Exception, inst' is a
>> suitable catch all??
>>
>>
> Just to add - we've seen this a few times as well. Our distributed build
> script very occasionally dies with an IronPython Console crash dialog
> despite try/excepts around all of the threads of execution. It took a long
> time to actually see what the error was - it looks like it was a .NET file
> system exception resulting from a call to shutil.copyfile (unfortunately I
> didn't manage to grab the text). The traceback was from <somestream>.Flush -
> we're copying files over a network which occasionally goes away, so that
> would make sense.
>
> (This is also IP 1.1.2 - haven't tried this with IP 2.)
>
> Christian
>
> --
> Christian Muirhead
> Resolver Systems
> christian.muirhead at resolversystems.com
>
>
> Resolver Systems Ltd
> 17a Clerkenwell Road, London EC1M 5RD, UK
> VAT No.: GB 893 5643 79 Registered in England and Wales as company number
> 5467329.
> Registered address: 843 Finchley Road, London NW11 8NA, UK
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20090114/f973d8b6/attachment.html>


More information about the Ironpython-users mailing list