diff options
Diffstat (limited to 'testxml/testxml.py')
-rwxr-xr-x | testxml/testxml.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index f49d347..d578484 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -835,7 +835,11 @@ def testParticle(id, file, src): if not os.path.isfile(fullPath) or os.path.exists(fullPath) == False: showMsgFile(file, "particle file not found", True) return - dom = minidom.parse(fullPath) + try: + dom = minidom.parse(fullPath) + except: + showMsgFile(file, "incorrect particle xml file", True) + return nodes = dom.getElementsByTagName("particle") if len(nodes) < 1: |