From: Marcel van der Veldt Date: Mon, 14 Sep 2020 06:37:17 +0000 (+0200) Subject: some fixes for the linter X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=9f56511efd1667803b36a4a77b00fa2586a852ca;p=music-assistant-server.git some fixes for the linter --- diff --git a/music_assistant/http_streamer.py b/music_assistant/http_streamer.py index 31b90b75..83983f44 100755 --- a/music_assistant/http_streamer.py +++ b/music_assistant/http_streamer.py @@ -74,9 +74,9 @@ class HTTPStreamer: # let the streaming begin! try: await asyncio.gather(bg_task) - except (asyncio.CancelledError, asyncio.TimeoutError): + except (asyncio.CancelledError, asyncio.TimeoutError) as exc: cancelled.set() - raise asyncio.CancelledError() + raise exc # re-raise return resp def __get_queue_item_stream(self, player_id, queue_item, buffer, cancelled): diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..0a066f8c --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1 @@ +"""Tests for Music Assistant go here."""