Update error message
This commit is contained in:
parent
4594060aa4
commit
823b69cf19
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue