Sfoglia il codice sorgente

[scrobbles] Fix missing note error

Colin Powell 11 ore fa
parent
commit
2d235c0577
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      vrobbler/apps/scrobbles/views.py

+ 1 - 1
vrobbler/apps/scrobbles/views.py

@@ -952,7 +952,7 @@ class ScrobbleDetailView(DetailView):
         if isinstance(initial_notes, list) and len(initial_notes) > 0 and isinstance(initial_notes[0], dict):
             notes_str = note_list_to_str(notes)
         else:
-            notes_str = "\n".join(initial_notes)
+            notes_str = "\n".join(initial_notes) if initial_notes else ""
 
         notes_str_fixed = notes_str.encode("utf-8").decode(
             "unicode_escape"