add 999 to error codes
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 9 Jul 2023 01:12:10 +0000 (03:12 +0200)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Sun, 9 Jul 2023 01:12:10 +0000 (03:12 +0200)
music_assistant/common/models/errors.py

index 44394cd091e81ce1c226f97cf852fb5690d86666..2c864e41f452e7a1a69703c93409ffd72a14ae15 100644 (file)
@@ -13,7 +13,7 @@ class MusicAssistantError(Exception):
 
 
 # mapping from error_code to Exception class
-ERROR_MAP: dict[int, type] = {0: MusicAssistantError}
+ERROR_MAP: dict[int, type] = {0: MusicAssistantError, 999: MusicAssistantError}
 
 
 class ProviderUnavailableError(MusicAssistantError):