From 6d4ecd75aafdf46a8168974ff54cd6b0883fe69b Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 4 Aug 2019 09:10:19 +0300 Subject: [PATCH] csv_metadata_quality/app.py: Close files before exit --- csv_metadata_quality/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/csv_metadata_quality/app.py b/csv_metadata_quality/app.py index f06d1dc..9d87996 100644 --- a/csv_metadata_quality/app.py +++ b/csv_metadata_quality/app.py @@ -88,3 +88,7 @@ def run(argv): # Write df.to_csv(args.output_file, index=False) + + # Close the input and output files before exiting + args.input_file.close() + args.output_file.close()