From 5f36cecd2d8b058939a3a5d8025d0679d494c1bf Mon Sep 17 00:00:00 2001 From: Jackson Taylor Date: Wed, 10 Nov 2021 14:02:35 -0500 Subject: Handle download errors temporarily --- jamos | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jamos b/jamos index 15209b8..309ad6c 100755 --- a/jamos +++ b/jamos @@ -140,8 +140,12 @@ if __name__ == "__main__": # Get the playlist url from the command line playlist_url = get_playlist_url() - # Download the songs - download_song(playlist_url) + try: + # TODO: make this continue downloading if a song fails + download_song(playlist_url) + except Exception as ex: + # TODO: Handle this a different way + print(ex) files = get_all_files(MUSIC_DIRECTORY) -- cgit v1.2.3