From 7469f4855fff4d5157558ba39a5ce356e1bc08f2 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 6 Nov 2020 15:08:29 +0100 Subject: [PATCH] We don't use tuples for settings now --- dungeonbattle/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dungeonbattle/settings.py b/dungeonbattle/settings.py index 634118e..064ad69 100644 --- a/dungeonbattle/settings.py +++ b/dungeonbattle/settings.py @@ -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: