소스 검색

[scrobbles] Fix missing note error

Colin Powell 11 시간 전
부모
커밋
2d235c0577
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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"