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(