SharedPreferences: fix None handling

This commit is contained in:
Thomas Farstrike
2026-03-11 21:09:43 +01:00
parent 181a10c99b
commit 1bf1dd67f0
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ class Editor:
def put_string(self, key, value):
"""Store a string value."""
self.temp_data[key] = str(value)
self.temp_data[key] = None if value is None else str(value)
return self
def put_int(self, key, value):