Skip to content

Commit

Permalink
Warn about too many previews too
Browse files Browse the repository at this point in the history
  • Loading branch information
Willy-JL committed Jun 9, 2024
1 parent cb063f1 commit 7588fd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer/src/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def parse(self, packpath: str) -> Pack:
settings.base_url, preview.relative_to(settings.files_dir)
)
)
if not pack.preview_urls:
logging.warn(f"Missing pack previews: {pack_set.name!r}")
if len(pack.preview_urls) not in range (1, 8):
logging.warn(f"Wrong pack previews: {pack_set.name!r} has {len(pack.preview_urls)} previews")

return pack

0 comments on commit 7588fd7

Please sign in to comment.