From 0679af3029ec52ea052cef662acca970ff466d50 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 5 Nov 2024 18:47:34 -0500 Subject: [PATCH] [scrobbles] Fix if log does not exist --- vrobbler/apps/scrobbles/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index aaa915f..1a51a86 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -1189,7 +1189,7 @@ class Scrobble(TimeStampedModel): if profile.ntfy_enabled and profile.ntfy_url: # TODO allow prority and tags to be configured in the profile notify_str = f"{scrobble.media_obj}" - if scrobble.log.get("description"): + if scrobble.log and scrobble.log.get("description"): notify_str += f" - {scrobble.log.get('description')}" requests.post( profile.ntfy_url,