Check all keys before returning

This commit is contained in:
jimmy 2025-06-02 00:16:58 +12:00
parent 3d7dd754eb
commit 9e72dba035
1 changed files with 2 additions and 2 deletions

View File

@ -80,8 +80,8 @@ class Settings(dict):
else:
return "Invalid key", 400
self[key] = value
self.save()
return "OK", 200
self.save()
return "OK", 200
except (KeyError, ValueError):
return "Bad request", 400