From 8fc13733bfc491f9e350a953b19dce756b5e491c Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Wed, 29 Oct 2025 12:04:49 +0100 Subject: [PATCH] config.py: fix 0 vs None handling --- internal_filesystem/lib/mpos/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal_filesystem/lib/mpos/config.py b/internal_filesystem/lib/mpos/config.py index 4e7307e8..1331a595 100644 --- a/internal_filesystem/lib/mpos/config.py +++ b/internal_filesystem/lib/mpos/config.py @@ -36,7 +36,7 @@ class SharedPreferences: def get_string(self, key, default=None): """Retrieve a string value for the given key, with a default if not found.""" to_return = self.data.get(key) - if not to_return and default: + if to_return is None and default is not None: to_return = default return to_return