We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6ea089 + ba89f21 commit 489cbdbCopy full SHA for 489cbdb
1 file changed
custom_components/mass_queue/utils.py
@@ -156,8 +156,8 @@ def find_image_from_metadata(data: dict, remotely_accessible: bool):
156
157
def find_image_from_album(data: dict, remotely_accessible: bool):
158
"""Attempts to find the image via the album key."""
159
- album = data.get("album", {})
160
- metadata = album.get("metadata", {})
+ album = data.get("album") or {}
+ metadata = album.get("metadata") or {}
161
img_data = metadata.get("images")
162
if img_data is None:
163
return None
0 commit comments