Update error message

This commit is contained in:
Ramon Wenger 2024-04-29 17:18:54 +02:00
parent 4594060aa4
commit 823b69cf19
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,7 @@ def handle_content_block(
# todo: add all the content blocks # todo: add all the content blocks
# todo: sanitize user inputs! # todo: sanitize user inputs!
if content["type"] not in allowed_blocks: if content["type"] not in allowed_blocks:
logger.info("not in allowed blocks") logger.error(f"{content['type']} not in allowed blocks")
return return
id = content.get("id") id = content.get("id")
@ -96,6 +96,7 @@ def handle_content_block(
id=id, id=id,
value=value, value=value,
) )
elif content["type"] == "assignment": elif content["type"] == "assignment":
if module is None: if module is None:
raise AssignmentParameterException( raise AssignmentParameterException(