premit zero attendance expoer to prevent crashes

This commit is contained in:
2024-10-30 18:40:34 +02:00
committed by Expo on server
parent 3473a6fba3
commit eff0d61f54
2 changed files with 3 additions and 3 deletions

View File

@@ -64,8 +64,8 @@ for r in lines[1:]:
expos_caving = 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):
sys.stderr.write("Error processing " + name + ". No attendances found\n")
sys.exit(1)
sys.stderr.write("Warning: processing " + name + ". No attendances found\n")
# sys.exit(1)
if(expos_caving and name != 'Rover Richardson' and name != 'Bier Tent'): headcount += 1
if mug: pics +=1
output += '<tr><td>'