Skip to content

Commit

Permalink
Merge pull request #142 from mmmnmnm/dev/add-error-log-for-playlist-a…
Browse files Browse the repository at this point in the history
…ssign

Dev/add error log for playlist assign
  • Loading branch information
gammaw authored Feb 20, 2022
2 parents 47268d9 + 2bf709a commit 96ceded
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arcsi/handler/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,11 @@ def find_playlist_id(self,):
for playlist in r.json():
if playlist["name"] == self.playlist_name:
self.playlist_id = str(playlist["id"])
return True
app.logger.debug("Add to playlist request returned {}".format(r.status_code))
return True
app.logger.debug("ERROR: Couldn't find playlist ID in Azuracast response.")
return False
app.logger.debug("ERROR: Azuracast request for playlist ID didn't succeed.")
return False

def empty_playlist(self):
Expand Down

0 comments on commit 96ceded

Please sign in to comment.