Merge pull request #1932 from mozilla/check_characters

skip file header of CSV file when reading alphabet
This commit is contained in:
Josh Meyer 2019-03-05 11:01:57 -08:00 committed by GitHub
commit 1276700c02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,7 @@ for inFile in (inFiles):
with open(inFile, "r") as csvFile:
reader = csv.reader(csvFile)
try:
next(reader, None) # skip the file header (i.e. "transcript")
for row in reader:
allText |= set(str(row[2]))
except IndexError as ie: