commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5344 - trunk/gnue-common/src/definitions


From: johannes
Subject: r5344 - trunk/gnue-common/src/definitions
Date: Thu, 18 Mar 2004 04:14:10 -0600 (CST)

Author: johannes
Date: 2004-03-18 04:14:09 -0600 (Thu, 18 Mar 2004)
New Revision: 5344

Modified:
   trunk/gnue-common/src/definitions/GParser.py
Log:
Fixed raising of some exceptions 


Modified: trunk/gnue-common/src/definitions/GParser.py
===================================================================
--- trunk/gnue-common/src/definitions/GParser.py        2004-03-18 10:08:18 UTC 
(rev 5343)
+++ trunk/gnue-common/src/definitions/GParser.py        2004-03-18 10:14:09 UTC 
(rev 5344)
@@ -262,7 +262,7 @@
         if attrns:
           if not self.xmlNamespaceAttributesAsPrefixes:
             tmsg = _("Unexpected namespace on attribute")
-            raise tmsg
+            raise MarkupError, tmsg
           prefix = attrns.split(':')[-1]
           attrs[prefix + '__' + attr] = saxattrs[qattr]
           xmlns[prefix] = attrns
@@ -452,7 +452,7 @@
      else:
          tmsg =  _("Unable to find an importable object named %s in %s") \
             % (self.name, self.library)
-         raise tmsg
+         raise MarkupError, tmsg
 
   #
   # __findImportItem





reply via email to

[Prev in Thread] Current Thread [Next in Thread]