Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF Converter, XML Reader Updates #325

Merged
merged 15 commits into from
Sep 27, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion odml/tools/xmlparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,12 @@ def parse_tag(self, root, fmt, insert_children=True):
self.check_mandatory_arguments(check_args, fmt, root.tag, root)

# Instantiate the current odML object with the parsed attributes.
obj = fmt.create(**arguments)
# Return None, if
mpsonntag marked this conversation as resolved.
Show resolved Hide resolved
obj = None
mpsonntag marked this conversation as resolved.
Show resolved Hide resolved
try:
obj = fmt.create(**arguments)
except Exception as e:
mpsonntag marked this conversation as resolved.
Show resolved Hide resolved
self.error(str(e), root)

if insert_children:
for child in children:
Expand Down