From acb1d86b17886bd87ebd7eaaa0478f62e4272dc5 Mon Sep 17 00:00:00 2001 From: Hellow Date: Tue, 4 Apr 2023 22:37:48 +0200 Subject: [PATCH] STUPID mistake --- src/music_kraken/pages/support_classes/default_target.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/music_kraken/pages/support_classes/default_target.py b/src/music_kraken/pages/support_classes/default_target.py index 63d8562..e0b0d92 100644 --- a/src/music_kraken/pages/support_classes/default_target.py +++ b/src/music_kraken/pages/support_classes/default_target.py @@ -22,6 +22,9 @@ class DefaultTarget: def __setattr__(self, __name: str, __value: str) -> None: if __name in DEFAULT_VALUES: + if type(__value) != str: + return + if self.__getattribute__(__name) == DEFAULT_VALUES[__name]: super().__setattr__(__name, fit_to_file_system(__value)) return