From 094a07fc216ac23fdfed40da31155b14026e5796 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Fri, 7 Aug 2009 07:53:46 +0000 Subject: [PATCH] =?UTF-8?q?Give=20file=20not=20found=20error=20for=20a=20n?= =?UTF-8?q?on-existing=20pspec=20file=20(Serdar=20Dalg=C4=B1=C3=A7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/pxml/xmlfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pisi/pxml/xmlfile.py b/pisi/pxml/xmlfile.py index 5afdfe08..b5f565be 100644 --- a/pisi/pxml/xmlfile.py +++ b/pisi/pxml/xmlfile.py @@ -82,6 +82,8 @@ class XmlFile(object): try: self.doc = iks.parse(localpath) return self.doc + except OSError, e: + raise Error(_("Unable to read file (%s): %s") %(localpath,e)) except Exception, e: raise Error(_("File '%s' has invalid XML") % (localpath) )