diff --git a/scripts/commands.py b/scripts/commands.py index 90ccf14c0ecf..e2f4257fe2ad 100644 --- a/scripts/commands.py +++ b/scripts/commands.py @@ -150,7 +150,7 @@ def delete_memory(key): def overwrite_memory(key, string): - if key >= 0 and key < len(mem.permanent_memory): + if int(key) >= 0 and key < len(mem.permanent_memory): _text = "Overwriting memory with key " + \ str(key) + " and string " + string mem.permanent_memory[key] = string