Skip to content

Commit

Permalink
chore: update ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
corenting committed Feb 6, 2024
1 parent 0464988 commit c1ed1a5
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 119 deletions.
2 changes: 1 addition & 1 deletion eddrit/reddit/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_post_thumbnail(data: dict[Hashable, Any]) -> tuple[str, bool]:
# Else get from media
elif (
(not thumbnail_url or thumbnail_url == "image")
and data.get("media", None)
and data.get("media")
and "oembed" in data["media"]
and data["media"]["oembed"].get("thumbnail_url")
):
Expand Down
Loading

0 comments on commit c1ed1a5

Please sign in to comment.