mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Fix incorrect check for default value in Config.get()
This commit is contained in:
parent
bf414f1f71
commit
53d25b7675
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user