XML expat error

dirkheld dirkheld at gmail.com
Thu Feb 28 15:37:10 EST 2008


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.



More information about the Python-list mailing list