Better failure handling

This commit is contained in:
Sumner Evans
2019-08-07 21:14:23 -06:00
parent 54f41fc0e9
commit 2cb37bac68
2 changed files with 1 additions and 2 deletions

View File

@@ -399,7 +399,6 @@ class LibremsonicApp(Gtk.Application):
# Do this the old fashioned way so that we can have access to ``reset`` # Do this the old fashioned way so that we can have access to ``reset``
# in the callback. # in the callback.
def do_play_song(song: Child): def do_play_song(song: Child):
# TODO force mp3 while getting chromecast working.
uri, stream = CacheManager.get_song_filename_or_stream( uri, stream = CacheManager.get_song_filename_or_stream(
song, song,
format='mp3', format='mp3',

View File

@@ -90,7 +90,7 @@ class Server:
result = requests.get(url, params=params) result = requests.get(url, params=params)
# TODO make better # TODO make better
if result.status_code != 200: if result.status_code != 200:
raise Exception(f'Fail! {result.status_code}') raise Exception(f'[FAIL] get: {url} status={result.status_code}')
print(f'[FINISH] get: {url}') print(f'[FINISH] get: {url}')
return result return result