From 74c16a1bbe866d7b37f2e4b59d44aa5c5dd59970 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 27 Apr 2019 14:49:18 +0100 Subject: [PATCH] Actually respect default return in Exports.get_one --- src/Exports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exports.py b/src/Exports.py index 615f5812..55f96a4a 100644 --- a/src/Exports.py +++ b/src/Exports.py @@ -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: