Skip to content

Commit 420075f

Browse files
committed
[xmlparser.py] Revert Catch ValueError at Object Creation
Catch all Exceptions. Related to issue #276.
1 parent 9c32cfb commit 420075f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

odml/tools/xmlparser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,8 @@ def parse_tag(self, root, fmt, insert_children=True):
313313
obj = fmt.create()
314314
try:
315315
obj = fmt.create(**arguments)
316-
except ValueError:
317-
self.error("ValueError: Values '%s' do not match given DType '%s'!" %
318-
(arguments['values'], arguments['dtype']), root)
316+
except Exception as e:
317+
self.error(str(e), root)
319318

320319
if insert_children:
321320
for child in children:

0 commit comments

Comments
 (0)