Skip to content

Commit

Permalink
update the create_master to avoid any issue while populating fields i…
Browse files Browse the repository at this point in the history
…n the xml and txt
  • Loading branch information
antoinemerle committed Jan 31, 2025
1 parent 426c119 commit d4609ce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/create_master_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ def __init__(self,outfile,headers):


def write_row(self,row):

# minimal change: remove fields not in fieldnames (octetCount) to avoid error
for key in list(row.keys()):
if key not in self.csvwriter.fieldnames:
del row[key]
self.csvwriter.writerow(row)


Expand Down

0 comments on commit d4609ce

Please sign in to comment.