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 d4609ce commit d665313
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/create_master_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +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]
# 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 d665313

Please sign in to comment.