database: fix typo in http exception
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
96b00549cf
commit
2d28a3eeff
|
@ -711,10 +711,12 @@ class MoonrakerDatabase:
|
|||
key: Any
|
||||
valid_types: Tuple[type, ...]
|
||||
if action != "GET":
|
||||
if namespace in self.protected_namespaces and \
|
||||
not self.enable_debug:
|
||||
if (
|
||||
namespace in self.protected_namespaces and
|
||||
not self.enable_debug
|
||||
):
|
||||
raise self.server.error(
|
||||
f"Write access to namespaces '{namespace}'"
|
||||
f"Write access to namespace '{namespace}'"
|
||||
" is forbidden", 403)
|
||||
key = web_request.get("key")
|
||||
valid_types = (list, str)
|
||||
|
|
Loading…
Reference in New Issue