Commit 22a329cc by Chris Dodge

don't always assume the webCamComments and desktopComments will be present

parent 1babebb6
...@@ -190,10 +190,10 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider): ...@@ -190,10 +190,10 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
review.save() review.save()
# go through and populate all of the specific comments # go through and populate all of the specific comments
for comment in data['webCamComments']: for comment in data.get('webCamComments', []):
self._save_review_comment(review, comment) self._save_review_comment(review, comment)
for comment in data['desktopComments']: for comment in data.get('desktopComments', []):
self._save_review_comment(review, comment) self._save_review_comment(review, comment)
def _save_review_comment(self, review, comment): def _save_review_comment(self, review, comment):
......
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