Commit 6656a0ff authored by Edward Fauchon-Jones's avatar Edward Fauchon-Jones
Browse files

Condition on correct validity class for interfields

This was causing a return value != 0 even when all interfields were
valid.
parent 234845c1
......@@ -94,7 +94,7 @@ def checkInterfield(sim, interfield):
valid = interfield.valid(sim)
# Condition on its type of validity
if isinstance(valid, err.Valid):
if isinstance(valid, err.ValidInterfield):
print INTERFIELD_VALID.format(
valid.name, interfield.name, valid.msg).strip()
return 0
......
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