Fix error reporting on make-folklist so error actually reported

This commit is contained in:
Wookey 2017-12-07 12:29:21 +00:00
parent ecd7241cd3
commit cee7c14516

View File

@ -19,7 +19,7 @@ for r in lines[1:]:
expos_caving = len([t for t in years if t == "1"]) expos_caving = len([t for t in years if t == "1"])
expos_notcaving = len([t for t in years if t == "-1"]) expos_notcaving = len([t for t in years if t == "-1"])
if(expos_caving == 0 and expos_notcaving == 0): if(expos_caving == 0 and expos_notcaving == 0):
sys.stdout.write("Error for", name) sys.stderr.write("Error processing " + name + ". No attendances found\n")
sys.exit(1) sys.exit(1)
if(expos_caving and name != 'Rover Richardson'): headcount += 1 if(expos_caving and name != 'Rover Richardson'): headcount += 1
if mug: pics +=1 if mug: pics +=1