aboutsummaryrefslogtreecommitdiff
path: root/pyasn1/type
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/type')
-rw-r--r--pyasn1/type/univ.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py
index 6e5824c..ef63ba8 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -2352,7 +2352,8 @@ class SequenceAndSetBase(base.AbstractConstructedAsn1Item):
subComponentType.isSuperTypeOf)
if not subtypeChecker(value, matchTags, matchConstraints):
- raise error.PyAsn1Error('Component value is tag-incompatible: %r vs %r' % (value, componentType))
+ if not componentType[idx].openType:
+ raise error.PyAsn1Error('Component value is tag-incompatible: %r vs %r' % (value, componentType))
if verifyConstraints and value.isValue:
try: