Commit 76e8bd48 by chrisndodge

Merge pull request #39 from edx/cdodge/some-callback-protections

don't always assume the webCamComments and desktopComments will be pr…
parents 1babebb6 22a329cc
...@@ -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