mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-12-22 12:12:18 +01:00
csv_metadata_quality/app.py: Close files before exit
This commit is contained in:
parent
264ce1d1df
commit
6d4ecd75aa
@ -88,3 +88,7 @@ def run(argv):
|
|||||||
|
|
||||||
# Write
|
# Write
|
||||||
df.to_csv(args.output_file, index=False)
|
df.to_csv(args.output_file, index=False)
|
||||||
|
|
||||||
|
# Close the input and output files before exiting
|
||||||
|
args.input_file.close()
|
||||||
|
args.output_file.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user