Commit 2bc21e73 by Justin Riley

catch ValueError in reapply_extensions command

Raised when the course name is not of form ORG/COURSE/NAME
parent fadf3020
...@@ -16,5 +16,5 @@ class Command(BaseCommand): ...@@ -16,5 +16,5 @@ class Command(BaseCommand):
try: try:
course = get_course_by_id(args[0]) course = get_course_by_id(args[0])
fix_missing_extensions(course) fix_missing_extensions(course)
except Http404 as e: except (ValueError, Http404) as e:
raise CommandError(e) raise CommandError(e)
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