Skip to content

Commit dd12ba4

Browse files
committed
Prevent sample loading error
1 parent 00630fb commit dd12ba4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/data/discotube_text_audio.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ def __getitem__(self, idx):
7676
{"youtube_metadata": meta_youtube, "discogs_metadata": meta_discogs}
7777
)
7878
except Exception:
79-
print(f"Error loading {self.filelist[idx]}")
80-
print(traceback.format_exc())
79+
# Do not log the error, just skip the sample
80+
# print(f"Error loading {self.filelist[idx]}")
81+
# print(traceback.format_exc())
8182
return [None, None]
8283

8384
return [audio, text]

0 commit comments

Comments
 (0)