Don't pass song ID when song download state changes

This commit is contained in:
Sumner Evans
2020-04-04 14:00:11 -06:00
parent cc2148568c
commit 422f080913
8 changed files with 13 additions and 9 deletions

View File

@@ -158,6 +158,8 @@ class Server:
def do_download(self, url: str, **params) -> bytes:
download = self._get(url, **params)
if not download:
raise Exception('Download failed')
if 'json' in download.headers.get('Content-Type'):
# TODO (#122): make better
raise Exception("Didn't expect JSON.")