Skip to content

Commit 8fc1373

Browse files
config.py: fix 0 vs None handling
1 parent 8f4533e commit 8fc1373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal_filesystem/lib/mpos/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def load(self):
3636
def get_string(self, key, default=None):
3737
"""Retrieve a string value for the given key, with a default if not found."""
3838
to_return = self.data.get(key)
39-
if not to_return and default:
39+
if to_return is None and default is not None:
4040
to_return = default
4141
return to_return
4242

0 commit comments

Comments
 (0)