* fix error message
This commit is contained in:
@@ -44,7 +44,6 @@ XML_NS = unicode(XML_NAMESPACE)
|
|||||||
import pisi
|
import pisi
|
||||||
|
|
||||||
class Error(pisi.Error):
|
class Error(pisi.Error):
|
||||||
"named this way because the class if mostly used with an import *"
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class XmlFile(object):
|
class XmlFile(object):
|
||||||
@@ -71,7 +70,7 @@ class XmlFile(object):
|
|||||||
self.doc = ParsePath(path)
|
self.doc = ParsePath(path)
|
||||||
return self.doc.documentElement
|
return self.doc.documentElement
|
||||||
except Ft.FtException, e:
|
except Ft.FtException, e:
|
||||||
raise Error(_("File '%s' has invalid XML:") % (path, str(e)) )
|
raise Error(_("File '%s' has invalid XML: %s") % (path, str(e)) )
|
||||||
|
|
||||||
def writexml(self, path):
|
def writexml(self, path):
|
||||||
f = file(path, 'w')
|
f = file(path, 'w')
|
||||||
|
|||||||
Reference in New Issue
Block a user