Merge pull request #22299 from edx/aj/handle-valueerror

Handle `ValueError` while getting group for user.
This commit is contained in:
Awais Jibran
2019-11-13 15:58:34 +05:00
committed by GitHub

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: