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

Improving debug in case of failure #142

Merged
merged 2 commits into from
Jun 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion iiif-presentation-validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,15 @@ def check_manifest(self, data, version, url=None, warnings=[]):
raise ValidationError("Manifest @id ({}) is different to the location where it was retrieved ({})".format(mf.id, url))
# Passed!
okay = 1
except KeyError as e:
print ('Failed falidation due to:')
traceback.print_exc()
err = 'Failed due to KeyError {}, check trace for details'.format(e)
okay = 0
except Exception as e:
# Failed
print (e)
print ('Failed falidation due to:')
traceback.print_exc()
err = e
okay = 0

Expand Down