mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
test
This commit is contained in:
parent
3ee4450b69
commit
56d502098e
@ -40,7 +40,6 @@ class BotConfig():
|
|||||||
return self.config.define_section(name, cls_, validate)
|
return self.config.define_section(name, cls_, validate)
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
stderr(str(name))
|
|
||||||
''' will only get called for undefined attributes '''
|
''' will only get called for undefined attributes '''
|
||||||
"""We will try to find a core value, or return None"""
|
"""We will try to find a core value, or return None"""
|
||||||
if hasattr(self.config.core, name):
|
if hasattr(self.config.core, name):
|
||||||
@ -48,6 +47,7 @@ class BotConfig():
|
|||||||
elif name.lower() in self.dict["core"].keys():
|
elif name.lower() in self.dict["core"].keys():
|
||||||
return self.dict["core"][str(name).lower()]
|
return self.dict["core"][str(name).lower()]
|
||||||
else:
|
else:
|
||||||
|
stderr(str(name))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user