Handle ValueError while getting group for user.

This commit is contained in:
Awais Jibran
2019-11-11 22:30:50 +05:00
parent 1cdfa5c7b2
commit aafaa1efae

View File

@@ -73,6 +73,8 @@ class RandomUserPartitionScheme(object):
},
exc_info=True
)
except ValueError:
log.error(u"Bad group_id %r for user: %r", group_id, user)
if group is None and assign and not course_tag_api.BulkCourseTags.is_prefetched(course_key):
if not user_partition.groups: