We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1f6314 commit d52570fCopy full SHA for d52570f
internal_filesystem/lib/mpos/config.py
@@ -35,7 +35,10 @@ def load(self):
35
36
def get_string(self, key, default=None):
37
"""Retrieve a string value for the given key, with a default if not found."""
38
- return str(self.data.get(key, default))
+ to_return = self.data.get(key)
39
+ if not to_return and default:
40
+ to_return = default
41
+ return to_return
42
43
def get_int(self, key, default=0):
44
"""Retrieve an integer value for the given key, with a default if not found."""
0 commit comments