summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyxb/binding/content.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyxb/binding/content.py b/pyxb/binding/content.py
index d3b08ec..a041520 100644
--- a/pyxb/binding/content.py
+++ b/pyxb/binding/content.py
@@ -926,9 +926,9 @@ class Wildcard (ContentState_mixin):
if elt is not None:
ns = elt.name().namespace()
else:
- raise pyxb.LogicError('Need namespace')
+ ns = value._ExpandedName.namespace()
else:
- raise pyxb.LogicError('Need namespace')
+ raise pyxb.LogicError('Need namespace from value')
if self.NC_any == self.__namespaceConstraint:
return True
if isinstance(self.__namespaceConstraint, tuple):