From 186ae18e1f16510e9e8e029037be9f3264113000 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 18 Nov 2025 12:35:53 -0500 Subject: [PATCH] [tasks] Fix when note is a string --- vrobbler/apps/scrobbles/scrobblers.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index 7bc7a73..cb72b9c 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -721,9 +721,12 @@ def emacs_scrobble_update_task( notes_updated = False for note in emacs_notes: - existing_note_ts = [ - n.get("timestamp") for n in scrobble.log.get("notes", []) - ] + try: + existing_note_ts = [ + n.get("timestamp") for n in scrobble.log.get("notes", []) + ] + except AttributeError: + existing_note_ts = [] if not scrobble.log.get('notes"'): scrobble.log["notes"] = [] if note.get("timestamp") not in existing_note_ts: