Skip to content

Commit

Permalink
Update api/api/models/media.py
Browse files Browse the repository at this point in the history
Co-authored-by: Dhruv Bhanushali <[email protected]>
  • Loading branch information
krysal and dhruvkb committed May 30, 2024
1 parent 4a3a800 commit cdb7aa3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/api/models/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def license_url(self) -> str | None:
return url

logger.warning(
f"The {self.__class__.__name__.lower()} with identifier={self.identifier} "
f"has no `license_url` in `meta_data`."
"Media item missing `license_url` in `meta_data`",
media=self.__class__.__name__,
identifier=self.identifier,
)
try:
return License(self.license.lower(), self.license_version).url
Expand Down

0 comments on commit cdb7aa3

Please sign in to comment.