From 865e008b13ad0213761e60432dfbf03354d32878 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 26 Dec 2013 16:00:50 +0100 Subject: [PATCH] fix xml exception --- telemeta/util/xmltodict2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telemeta/util/xmltodict2.py b/telemeta/util/xmltodict2.py index 11c7fd06..b0fb4589 100644 --- a/telemeta/util/xmltodict2.py +++ b/telemeta/util/xmltodict2.py @@ -185,7 +185,8 @@ def xmltodict(xml, attsToSkip=[], addCodeFile=False): except expat.ExpatError: errmsg = "An invalid XML string was encountered" if errmsg: - raise Exception.XmlException, errmsg + raise Exception(errmsg) + if addCodeFile and isPath: # Get the associated code file, if any codePth = "%s-code.py" % os.path.splitext(xml)[0] -- 2.39.5