linting
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 10 Oct 2020 21:25:21 +0000 (23:25 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sat, 10 Oct 2020 21:25:21 +0000 (23:25 +0200)
music_assistant/helpers/process.py
music_assistant/managers/music.py
music_assistant/managers/streams.py

index 95f154370da5d60750343462a3337f95bc8215a6..b4ceaab9ce46d433e77a0e0956c9cb5330900bff 100644 (file)
@@ -21,7 +21,7 @@ from typing import AsyncGenerator, List, Optional
 LOGGER = logging.getLogger("mass.helpers")
 
 
-class AsyncProcess(object):
+class AsyncProcess:
     """Implementation of a (truly) non blocking subprocess."""
 
     def __init__(
index 0f86b36b6b30af23c55cbd0062bf2a34c4276b65..41988e5a4db7b9ff8dac9e12975a1a8386f77f5a 100755 (executable)
@@ -54,7 +54,7 @@ def sync_task(desc):
                 EVENT_MUSIC_SYNC_STATUS, method_class.running_sync_jobs
             )
             await func(*args)
-            LOGGER.info("Finished syncing %s for provider %s", desc, prov_id)
+            LOGGER.debug("Finished syncing %s for provider %s", desc, prov_id)
             method_class.running_sync_jobs.remove(sync_job)
             method_class.mass.signal_event(
                 EVENT_MUSIC_SYNC_STATUS, method_class.running_sync_jobs
index ad9900f42a6d8262af706fe37d1693ae39122275..0a2da09678c04024480f60550cd684f8357b6dba 100755 (executable)
@@ -108,11 +108,12 @@ class StreamManager:
 
                 await asyncio.wait([fill_buffer_task])
 
+            # pylint: disable=broad-except
             except (
                 GeneratorExit,
                 asyncio.CancelledError,
                 Exception,
-            ) as exc:  # pylint: disable=broad-except
+            ) as exc:
                 cancelled = True
                 fill_buffer_task.cancel()
                 LOGGER.debug(
@@ -164,11 +165,12 @@ class StreamManager:
                 async for chunk in sox_proc.iterate_chunks():
                     yield chunk
                 await asyncio.wait([fill_buffer_task])
+            # pylint: disable=broad-except
             except (
                 GeneratorExit,
                 asyncio.CancelledError,
                 Exception,
-            ) as exc:  # pylint: disable=broad-except
+            ) as exc:
                 cancelled = True
                 fill_buffer_task.cancel()
                 LOGGER.debug(