aboutsummaryrefslogtreecommitdiff
path: root/pyasn1/type
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-08-29 16:00:55 +0200
committerIlya Etingof <etingof@gmail.com>2017-08-29 16:00:55 +0200
commit9441a1c08d5fbb116a7e6b3ec2fddea4e784fd9f (patch)
tree1847c0e12213719c033b8771dccfe11c5cd2c360 /pyasn1/type
parent2b71504897e1703cbe08069f99d34b949db364c0 (diff)
downloadpyasn1-9441a1c08d5fbb116a7e6b3ec2fddea4e784fd9f.tar.gz
fixed crash at SEQUENCE/OF encoder, schemaless mode
Diffstat (limited to 'pyasn1/type')
-rw-r--r--pyasn1/type/univ.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py
index b9b8fa0..b83c3ec 100644
--- a/pyasn1/type/univ.py
+++ b/pyasn1/type/univ.py
@@ -1849,7 +1849,7 @@ class SequenceOfAndSetOfBase(base.AbstractConstructedAsn1Item):
elif currentValue is not noValue and isinstance(currentValue, base.AbstractSimpleAsn1Item):
value = currentValue.clone(value=value)
else:
- raise error.PyAsn1Error('%s undefined component type' % componentType.__class__.__name__)
+ raise error.PyAsn1Error('Non-ASN.1 value %r and undefined component type at %r' % (value, self))
elif componentType is not None:
if self.strictConstraints:
if not componentType.isSameTypeWith(value, matchTags, matchConstraints):