Commit ea2633d4 by Julien Paillé Committed by Régis Behmo

Fix generate_course_structure command.

parent ccbd88ac
...@@ -52,7 +52,7 @@ class Command(BaseCommand): ...@@ -52,7 +52,7 @@ class Command(BaseCommand):
# TODO Future improvement: Use .delay(), add return value to ResultSet, and wait for execution of # TODO Future improvement: Use .delay(), add return value to ResultSet, and wait for execution of
# all tasks using ResultSet.join(). I (clintonb) am opting not to make this improvement right now # all tasks using ResultSet.join(). I (clintonb) am opting not to make this improvement right now
# as I do not have time to test it fully. # as I do not have time to test it fully.
update_course_structure.apply(unicode(course_key)) update_course_structure.apply(args=[unicode(course_key)])
except Exception as ex: except Exception as ex:
log.exception('An error occurred while generating course structure for %s: %s', log.exception('An error occurred while generating course structure for %s: %s',
unicode(course_key), ex.message) unicode(course_key), ex.message)
......
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