]> git.parisson.com Git - telemeta.git/commitdiff
fix xml exception
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 26 Dec 2013 15:00:50 +0000 (16:00 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 26 Dec 2013 15:00:50 +0000 (16:00 +0100)
telemeta/util/xmltodict2.py

index 11c7fd069e2ba76b41de3d2263c38f01b3daec81..b0fb458929ebf92776f4a0263458479d23dffc4c 100644 (file)
@@ -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]