Skip to content

Commit

Permalink
Fix error message for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
GillesArcas committed Jan 5, 2020
1 parent 6fa5c9a commit b1e01ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sudosol/sudosol.py
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ def testfile(options, filename, techniques, explain):
if options.trace == 'failure':
print(input, output, file=f)
ngrids += 1
except ValueError:
except (ValueError, SudokuError):
print(f'Test file: {filename:20} Result: False Solved: {solved}/{ngrids} Error: Incorrect line format')
return False, 0
finally:
Expand Down

0 comments on commit b1e01ab

Please sign in to comment.