Commit 91d61ae7 by Eric Fischer

Merge pull request #801 from edx/efischer/staff_step_DNE

Change exception type
parents 3b5cff30 6ce83afa
...@@ -382,7 +382,7 @@ class AssessmentWorkflow(TimeStampedModel, StatusModel): ...@@ -382,7 +382,7 @@ class AssessmentWorkflow(TimeStampedModel, StatusModel):
# A staff step must always be available, to allow for staff overrides # A staff step must always be available, to allow for staff overrides
try: try:
self.steps.get(name=self.STATUS.staff) self.steps.get(name=self.STATUS.staff)
except AttributeError: except AssessmentWorkflowStep.DoesNotExist:
for step in list(self.steps.all()): for step in list(self.steps.all()):
step.order_num += 1 step.order_num += 1
self.steps.add( self.steps.add(
......
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