Skip to content

Commit

Permalink
Merge 085e7ca into 54f32f8
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Jan 27, 2020
2 parents 54f32f8 + 085e7ca commit c97af3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iiif_validator/tests/info_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def run(self, result):
self.validationInfo.check('type-is-int: width', type(t['width']), int, result)
# extra version 3.0 checks
if result.version[0] == "3":
self.validationInfo.check('correct-type', info['type'], "ImageService3", result, "Info.json missing required type of ImageService3.")
self.validationInfo.check('correct-type', 'type' in info and info['type'], "ImageService3", result, "Info.json missing required type of ImageService3.")
self.validationInfo.check('license-renamed', 'license' in info, False, result,'license has been renamed rights in 3.0',warning=True)
if 'rights' in info:
self.validationInfo.check('type-is-uri: rights', info['rights'].startswith('http'), True, result,'Rights should be a single URI from Creative Commons, RightsStatements.org or URIs registered as extensions.')
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
lxml
bottle
python-magic
pillow
# Versions including 7 don't support python 2.x
pillow<7
mock

0 comments on commit c97af3c

Please sign in to comment.