From: Marcel van der Veldt Date: Sun, 25 Feb 2024 11:16:49 +0000 (+0100) Subject: small optimization X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=d56d1f18b739d20699b710f76fb1ae5e823e2b78;p=music-assistant-server.git small optimization --- diff --git a/music_assistant/server/controllers/players.py b/music_assistant/server/controllers/players.py index 56ebaf0b..748a05b9 100644 --- a/music_assistant/server/controllers/players.py +++ b/music_assistant/server/controllers/players.py @@ -681,9 +681,8 @@ class PlayerController(CoreController): await self.cmd_stop(player_id) if player_id not in parent_player.can_sync_with: raise RuntimeError( - "Player %s can not be synced with %s", - child_player.display_name, - parent_player.display_name, + f"Player {child_player.display_name} can not " + f"be synced with {parent_player.display_name}", ) # all checks passed, forward command to the player provider player_provider = self.get_player_provider(player_id) diff --git a/pyproject.toml b/pyproject.toml index cf95f33a..2551e796 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -187,6 +187,7 @@ ignore = [ "D213", # Conflicts with other rules "D417", # False positives in some occasions "EM101", # Just annoying, not really useful + "EM102", # Just annoying, not really useful "FIX002", # Just annoying, not really useful "PLR2004", # Just annoying, not really useful "PD011", # Just annoying, not really useful