mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
SharedPreferences: fix None handling
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user