davidnicolson1 at hotmail.com
Tue Mar 27 06:52:28 CEST 2007
Thanks, but it's definitely not the print. In original the code the
print statements are replaced by a call to a log method.
Besides, the exception would be different if it was thrown outside of
the try block.
On 27/03/2007, at 2:42 PM, Justin Ezequiel wrote:
> On Mar 27, 11:10 am, David Nicolson <davidnicols... at hotmail.com>
>> I wasn't exactly sure where to send this, I don't know if it is a bug
>> in Python or not. This is rare, but it has occurred a few times and
>> seems to be reproducible for those who experience it.
>> Examine this code:
>>>>> except Exception, err:
>>>>> print sys.exc_info()
>>>>> print err
>> This is the output:
>> 'ascii' codec can't decode byte 0xd6 in position 26: ordinal not in
>> What could the possible cause of this be? Shouldn't shutil simply be
>> reading and writing the bytes and not character decoding them?
> what if you try it without the try...except?
> perhaps the UnicodeDecodeError is in the print...
More information about the Python-list