Skip to content
Snippets Groups Projects
Unverified Commit 7af03627 authored by Awais Jibran's avatar Awais Jibran Committed by GitHub
Browse files

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

 Handle `ValueError` while getting group for user.
parents 2fee476d aafaa1ef
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment