Commit 03bcd19b by ichuang

catch error in delete_course management script when group does not exist

parent 4f321897
...@@ -48,4 +48,7 @@ class Command(BaseCommand): ...@@ -48,4 +48,7 @@ class Command(BaseCommand):
print 'removing User permissions from course....' print 'removing User permissions from course....'
# in the django layer, we need to remove all the user permissions groups associated with this course # in the django layer, we need to remove all the user permissions groups associated with this course
if commit: if commit:
_delete_course_group(loc) try:
_delete_course_group(loc)
except Exception as err:
print("Error in deleting course groups for {0}: {1}".format(loc, err))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment