Skip to content

Commit

Permalink
Fix jsonschema deprecation warning missed in mozilla-releng#2665
Browse files Browse the repository at this point in the history
  • Loading branch information
jcristau committed Nov 28, 2023
1 parent 9977a55 commit 1a6d6fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auslib/blobs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __init__(self, *args, **kwargs):
def validate(self, product, allowlistedDomains):
"""Raises a BlobValidationError if the blob is invalid."""
self.log.debug("Validating blob %s" % self)
validator = jsonschema.Draft4Validator(self.getSchema(), format_checker=jsonschema.draft4_format_checker)
validator = jsonschema.Draft4Validator(self.getSchema(), format_checker=jsonschema.Draft4Validator.FORMAT_CHECKER)
# Normal usage is to use .validate(), but errors raised by it return
# a massive error message that includes the entire blob, which is way
# too big to be useful in the UI. Instead, we iterate over the
Expand Down

0 comments on commit 1a6d6fd

Please sign in to comment.