Skip to content

Commit

Permalink
Log a warning for invalid slugs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Apr 29, 2024
1 parent 1ebdd06 commit 4f5092d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/api/utils/license.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ def get_license_slug_enum(slug: str) -> tuple[str, License] | None:
lic = License(slug)
return slug, lic
except ValueError:
logger.warning(f"Invalid license slug provided: `{slug}`")
return None

0 comments on commit 4f5092d

Please sign in to comment.