diff --git a/logo_fetch_service.py b/logo_fetch_service.py index d1628df..17e4332 100644 --- a/logo_fetch_service.py +++ b/logo_fetch_service.py @@ -384,7 +384,7 @@ class LogoFetchService: for img in soup.find_all('img'): attrs_text = ' '.join([ - img.get('class', [''])[0] if isinstance(img.get('class'), list) else str(img.get('class', '')), + (img.get('class', ['']) or [''])[0] if isinstance(img.get('class'), list) else str(img.get('class', '')), img.get('id', ''), img.get('alt', ''), img.get('src', '')