From 0b20903c8e824fe21b4b8823284ac6ed0735bdae Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Fri, 16 May 2003 00:31:53 +0000 Subject: [PATCH] Modified Files: XMLSchema.py ---------------------------------------------------------------------- fixed an obvious bug, added a SchemaError class so it can actually be thrown. ---------------------------------------------------------------------- --- XMLSchema.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/XMLSchema.py b/XMLSchema.py index c1f5401..15357bf 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -41,6 +41,8 @@ class SchemaReader: finally: file.close() return schema +class SchemaError(Exception): + pass class XMLSchema: # This is temporary, for the benefit of WSDL until the real thing works. @@ -92,7 +94,7 @@ class realXMLSchema: 'blockDefault', 'finalDefault', 'version', 'id' ): value = DOM.getAttr(schema, attrname, None, None) - if attr is not None: + if value is not None: setattr(self, attrname, value)