diff options
| author | Alex Schofield <git@ajschof.me> | 2025-02-18 21:21:31 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-02-18 21:21:31 +0000 |
| commit | 0022dba517a82cf15477281d8d02e0d7da8dbbe1 (patch) | |
| tree | 47f44139c3248b40d8b469a8b2381dde4c45a1da /cli.py | |
| parent | 2c19a941bb3afe4145761c4c6e54880490160aa2 (diff) | |
| download | gdpr-obfuscator-0022dba517a82cf15477281d8d02e0d7da8dbbe1.tar.gz gdpr-obfuscator-0022dba517a82cf15477281d8d02e0d7da8dbbe1.zip | |
create CSVReader object outside of args if statement
Diffstat (limited to 'cli.py')
| -rw-r--r-- | cli.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -26,11 +26,12 @@ def main(): # Parse the arguments args = parser.parse_args() + # Create the CSVReader object + reader = CSVReader() + # Read the CSV data based on the user's choice of local or S3 if args.local and not args.s3: logger.debug("User chose to read CSV from local path") - # Create a CSVReader object and read the local CSV file - reader = CSVReader() data = reader.read_local(args.local) # For debug purposes, log the data read from the CSV logger.debug(data) |
