From 87e0ddf3986c4a4b274e04f6866346c67edcbc04 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 30 Oct 2013 11:16:47 -0400 Subject: [PATCH] Fix a typo that caused an error to be raised --- lms/djangoapps/django_comment_client/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index 6550c4d1e5..31d675c8cf 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -333,7 +333,7 @@ def extend_content(content): try: user = User.objects.get(pk=content['user_id']) roles = dict(('name', role.name.lower()) for role in user.roles.filter(course_id=content['course_id'])) - except user.DoesNotExist: + except User.DoesNotExist: log.error('User ID {0} in comment content {1} but not in our DB.'.format(content.get('user_id'), content.get('id'))) content_info = {