XML expat error

Stefan Behnel stefan_ml at behnel.de
Thu Feb 28 15:53:02 EST 2008


dirkheld wrote:
> On 28 feb, 08:18, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
>> On Wed, 27 Feb 2008 14:02:25 -0800, dirkheld wrote:
>>> Something strange here. The xml file causing the problem has only 361
>>> lines. Isn't there a way to catch this error, ignore it and continu
>>> with the rest of the other files?
>> Yes of course: handle the exception instead of letting it propagate to the
>> top level and ending the program.
>>
>> Ciao,
>>         Marc 'BlackJack' Rintsch
> 
> Ehm, maybe a stupid question... how. I'm rather new to python and I
> never user error handling.

Care to read the tutorial?

Stefan



More information about the Python-list mailing list