Skip to content

Commit

Permalink
Handle Missing Image URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCatarino committed May 17, 2024
1 parent 6088bb3 commit d89cf67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Explore/generate_social_media_thumbnails.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __get_json_content(url: str) -> List:
exit(f'Invalid content for {url}')

def __get_profile(url: str) -> Image:
if 'icon' in url:
if not url or 'icon' in url:
return None

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

0 comments on commit d89cf67

Please sign in to comment.