From 823b69cf19d5f4320fd60e50a57aaeea88800bab Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Mon, 29 Apr 2024 17:18:54 +0200 Subject: [PATCH] Update error message --- server/books/schema/mutations/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/books/schema/mutations/utils.py b/server/books/schema/mutations/utils.py index ed02486c..322a96fe 100644 --- a/server/books/schema/mutations/utils.py +++ b/server/books/schema/mutations/utils.py @@ -79,7 +79,7 @@ def handle_content_block( # todo: add all the content blocks # todo: sanitize user inputs! if content["type"] not in allowed_blocks: - logger.info("not in allowed blocks") + logger.error(f"{content['type']} not in allowed blocks") return id = content.get("id") @@ -96,6 +96,7 @@ def handle_content_block( id=id, value=value, ) + elif content["type"] == "assignment": if module is None: raise AssignmentParameterException(