Skip to content

Commit

Permalink
Fixed string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rgerkin committed Oct 31, 2017
1 parent 3646336 commit 4f7bbe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sciunit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ def judge(self, models, skip_incapable=False, stop_on_error=True,
predictions.append(prediction)
except CapabilityError as e:
raise CapabilityError(("TestM2M's judge method resulted in error"
"for '%s'. Error: '%s'" % model, str(e)))
"for '%s'. Error: '%s'" % (model, str(e))))
except Exception as e:
raise Exception(("TestM2M's judge method resulted in error"
"for '%s'. Error: '%s'" % model, str(e)))
"for '%s'. Error: '%s'" % (model, str(e))))

# 5. 2D list for scores; num(rows) = num(cols) = num(predictions)
scores = [[NoneScore for x in range(len(predictions))] for y in range(len(predictions))]
Expand Down

0 comments on commit 4f7bbe2

Please sign in to comment.