Actually respect default return in Exports.get_one
This commit is contained in:
parent
f8e933d4cc
commit
74c16a1bbe
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Exports(object):
|
|||
def get_one(self, setting: str, default: typing.Any=None
|
||||
) -> typing.Optional[typing.Any]:
|
||||
values = self.get_all(setting)
|
||||
return values[0] if values else None
|
||||
return values[0] if values else default
|
||||
|
||||
def purge_context(self, context: str):
|
||||
if context in self._context_exports:
|
||||
|
|
Loading…
Reference in a new issue