Fix incorrect check for default value in Config.get()

This commit is contained in:
allegroai 2021-06-09 02:46:01 +03:00
parent bf414f1f71
commit 53d25b7675

View File

@ -233,7 +233,7 @@ class Config(object):
def get(self, key, default=_MISSING):
value = self._config.get(key, default)
if value is self._MISSING and not default:
if value is self._MISSING:
raise KeyError(
"Unable to find value for key '{}' and default value was not provided.".format(
key