Skip to content

Commit

Permalink
feat: Log no error if extensions is null. (Create no note, as this wo…
Browse files Browse the repository at this point in the history
…uld likely result in a note for every release.)
  • Loading branch information
jpmckinney committed Oct 13, 2023
1 parent ca26fb2 commit 853ebb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process/management/commands/release_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def compile_release(compiled_collection_id, ocid):
package_extensions = release.package_data.data.get("extensions", [])
if isinstance(package_extensions, list):
extensions.update(package_extensions)
else:
elif package_extensions is not None:
logger.error("Ignored malformed extensions for release %s: %s", release, package_extensions)

# estonia_digiwhist publishes release packages containing a single release with a "compiled" tag, and it sometimes
Expand Down

0 comments on commit 853ebb1

Please sign in to comment.