Skip to content

Commit d89cf67

Browse files
committed
Handle Missing Image URL
1 parent 6088bb3 commit d89cf67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Explore/generate_social_media_thumbnails.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __get_json_content(url: str) -> List:
1919
exit(f'Invalid content for {url}')
2020

2121
def __get_profile(url: str) -> Image:
22-
if 'icon' in url:
22+
if not url or 'icon' in url:
2323
return None
2424

2525
image = get(url.replace("\\",""), stream=True)

0 commit comments

Comments
 (0)