Commit 0db4c987 by chrisndodge

Merge pull request #658 from edx/bugfix/ichuang/delete_course_group_not_exist

catch error in delete_course management script when group does not exist
parents 8ba9497f 03bcd19b
......@@ -48,4 +48,7 @@ class Command(BaseCommand):
print 'removing User permissions from course....'
# in the django layer, we need to remove all the user permissions groups associated with this course
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