We don't use tuples for settings now

This commit is contained in:
Yohann D'ANELLO 2020-11-06 15:08:29 +01:00
parent 9f6c946279
commit 7469f4855f
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class Settings:
"""
Retrieve the comment of a setting.
"""
if hasattr(self, item) and isinstance(object.__getattribute__(self, item), tuple):
if item in self.settings_keys:
return object.__getattribute__(self, item)[1]
for key in self.settings_keys:
if getattr(self, key) == item: