Fix warning on card URL translation to include the tweet ID

This commit is contained in:
JustAnotherArchivist
2022-04-15 02:52:03 +00:00
parent 3870282a42
commit 65e7d8bd24

View File

@@ -862,7 +862,7 @@ class _TwitterAPIScraper(snscrape.base.Scraper):
try:
i = kwargs['tcooutlinks'].index(card.url)
except ValueError:
_logger.warning('Could not find card URL in tcooutlinks')
_logger.warning(f'Could not find card URL in tcooutlinks on tweet {kwargs["id"]}')
else:
card.url = kwargs['outlinks'][i]
return Tweet(**kwargs)