Merge branch 'main' of git.gade.gg:NikolajDanger/wiki-tcg
This commit is contained in:
@@ -489,15 +489,12 @@ async def _get_card_async(client: httpx.AsyncClient, page_title: str|None = None
|
||||
card_type_task, wikirank_task, pageviews_task
|
||||
)
|
||||
if (
|
||||
(card_type == CardType.other and instance == "") or
|
||||
language_count == 0 or
|
||||
score is None or
|
||||
views is None
|
||||
):
|
||||
error_message = f"Could not generate card '{title}': "
|
||||
if card_type == CardType.other and instance == "":
|
||||
error_message += "Not instance of a class"
|
||||
elif language_count == 0:
|
||||
if language_count == 0:
|
||||
error_message += "No language pages found"
|
||||
elif score is None:
|
||||
error_message += "No wikirank score"
|
||||
|
||||
Reference in New Issue
Block a user