Re: [Tutor] Trying to catch an exception...

2006-09-15 Thread Kent Johnson
William O'Higgins Witteman wrote: > I am running a program (via py2exe) that is reading some XML files with > xml.minidom. I am getting an error wherein I pull a value from a tag > which (I think) happens to be empty. Thus, it throws this error: > > AttributeError: 'NoneType' object has no attri

Re: [Tutor] Trying to catch an exception...

2006-09-15 Thread Alan Gauld
"William O'Higgins Witteman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am running a program (via py2exe) that is reading some XML files >with > xml.minidom. I am getting an error wherein I pull a value from a > tag > which (I think) happens to be empty. Thus, it throws thi

[Tutor] Trying to catch an exception...

2006-09-15 Thread William O'Higgins Witteman
I am running a program (via py2exe) that is reading some XML files with xml.minidom. I am getting an error wherein I pull a value from a tag which (I think) happens to be empty. Thus, it throws this error: AttributeError: 'NoneType' object has no attribute 'data' Here's the code that creates th