Commit c03551d9 by Tim Krones

Address upstream review comments.

parent 645115fb
......@@ -509,7 +509,8 @@ class VectorDrawXBlock(StudioEditableXBlockMixin, XBlock):
raise ValueError
# If we get to this point, it means that vector and point data is valid;
# the only thing left to check is whether data contains a list of checks:
return 'checks' in data
if 'checks' not in data:
raise ValueError
@XBlock.json_handler
def check_answer(self, data, suffix=''): # pylint: disable=unused-argument
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment