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: 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(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue