diff options
Diffstat (limited to 'tests/python/alembic_tests.py')
-rw-r--r-- | tests/python/alembic_tests.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/python/alembic_tests.py b/tests/python/alembic_tests.py index c911634ba12..448048d0f17 100644 --- a/tests/python/alembic_tests.py +++ b/tests/python/alembic_tests.py @@ -104,9 +104,11 @@ class AbstractAlembicTest(AbstractBlenderRunnerTest): if proptype == 'CompoundProperty': # To read those, call self.abcprop() on it. continue - if len(parts) < 2: - raise ValueError('Error parsing result from abcprop: %s' % info.strip()) - valtype_and_arrsize, name_and_extent = parts[1:] + + try: + valtype_and_arrsize, name_and_extent = parts[1:] + except ValueError as ex: + raise ValueError('Error parsing result from abcprop "{info.strip()}": {ex}') from ex # Parse name and extent m = self.abcls_array.match(name_and_extent) |