From 2d28a3eeffa016c15bbffa896df0abacd5d73ceb Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Sat, 19 Feb 2022 12:56:10 -0500 Subject: [PATCH] database: fix typo in http exception Signed-off-by: Eric Callahan --- moonraker/components/database.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/moonraker/components/database.py b/moonraker/components/database.py index 5efff42..c2d9327 100644 --- a/moonraker/components/database.py +++ b/moonraker/components/database.py @@ -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)