Skip to content

Commit

Permalink
Merge pull request #410 from biglocalnews/ca-dir-fix
Browse files Browse the repository at this point in the history
CA needs to create_directory
  • Loading branch information
palewire authored Feb 4, 2022
2 parents b317660 + e790a0b commit 854cd5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions warn/scrapers/ca.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def scrape(
temp_csv, output_headers, data, mode="a", extrasaction="ignore"
)
# If all went well, copy temp csv over pre-existing output csv
utils.create_directory(output_csv, is_file=True)
shutil.copy2(temp_csv, output_csv)
return output_csv

Expand Down

0 comments on commit 854cd5c

Please sign in to comment.