Annotation Tools: Pylint Fix left over from previous PR

This commit is contained in:
lduarte1991
2014-09-19 12:37:02 -04:00
parent 5634096825
commit b7313d6d2e
3 changed files with 3 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ class ImageAnnotationModule(AnnotatableFields, XModule):
if self.runtime.get_real_user is not None:
try:
self.user_email = self.runtime.get_real_user(self.runtime.anonymous_student_id).email
except: # pylint: disable=broad-except
except Exception: # pylint: disable=broad-except
self.user_email = _("No email address found.")
def _extract_instructions(self, xmltree):

View File

@@ -109,7 +109,7 @@ class TextAnnotationModule(AnnotatableFields, XModule):
if self.runtime.get_real_user is not None:
try:
self.user_email = self.runtime.get_real_user(self.runtime.anonymous_student_id).email
except: # pylint: disable=broad-except
except Exception: # pylint: disable=broad-except
self.user_email = _("No email address found.")
def _extract_instructions(self, xmltree):

View File

@@ -109,7 +109,7 @@ class VideoAnnotationModule(AnnotatableFields, XModule):
if self.runtime.get_real_user is not None:
try:
self.user_email = self.runtime.get_real_user(self.runtime.anonymous_student_id).email
except: # pylint: disable=broad-except
except Exception: # pylint: disable=broad-except
self.user_email = _("No email address found.")
def _extract_instructions(self, xmltree):