Skip to content

Commit

Permalink
Merge pull request #10 from lsloan/master
Browse files Browse the repository at this point in the history
"Skip people without uniqnames"

I'm going to merge this now so it can be deployed ASAP and prevent further errors in production.

@dlhaines, if you'd like to comment on the change or ask any questions, you're welcome to write a message here.
  • Loading branch information
lsloan authored Apr 24, 2017
2 parents fa2464d + d047ffe commit 69b8e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def createArcGISGroupsForAssignments(arcGIS, assignments, courseDictionary, cour

groupNameAndID = util.formatNameAndID(group)

courseUsers = [user.login_id for user in courseUserDictionary[course.id]]
courseUsers = [user.login_id for user in courseUserDictionary[course.id] if (user.login_id is not None)]
logger.info('Adding Canvas Users to ArcGIS Group {}: {}'.format(groupNameAndID, courseUsers))

# ArcGIS usernames are U-M uniqnames with the ArcGIS organization name, separated by an underscore
Expand Down

0 comments on commit 69b8e1d

Please sign in to comment.