diff --git a/XMLSchema.py b/XMLSchema.py index 034aaf8..f771c4b 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -599,7 +599,8 @@ class XMLSchemaComponent(XMLBase, MarkerInterface): elif parent.imports.has_key(namespace): schema = parent.imports[namespace].getSchema() if schema is None: - raise SchemaError, 'no schema instance for imported namespace (%s).' + raise SchemaError, 'no schema instance for imported namespace (%s).'\ + %(namespace) try: obj = getattr(schema, collection)[name] except KeyError, ex: