Skip to content
Snippets Groups Projects
Commit aafaa1ef authored by Awais Jibran's avatar Awais Jibran
Browse files

Handle `ValueError` while getting group for user.

parent 1cdfa5c7
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