fix bare raise, fix fencepost error

This commit is contained in:
Samantha Baldwin
2017-09-09 15:12:00 -04:00
parent a72ae82f0d
commit e4ca5c0a7f
2 changed files with 3 additions and 5 deletions

View File

@@ -429,10 +429,9 @@ Log files will log the path to tracks relative to this directory.
if trackResult.testcrc == trackResult.copycrc:
sys.stdout.write('CRCs match for track %d\n' % number)
else:
sys.stdout.write(
'ERROR: CRCs did not match for track %d\n' % number
raise RuntimeError(
"CRCs did not match for track %d\n" % number
)
raise
sys.stdout.write(
'Peak level: {:.2%} \n'.format(trackResult.peak))