Don't raise errors if log file is missing

master
Dan Howe 6 years ago
parent dd749ca0d9
commit 793ca0ade4

@ -229,6 +229,8 @@ def telemetered_bore_downloader(bore_ids, start_date, end_date, download_dir):
# Stop logging
logging.shutdown()
if os.path.isfile(log_name)
with open(log_name, 'r') as f:
log_data = f.read()
@ -240,6 +242,7 @@ def telemetered_bore_downloader(bore_ids, start_date, end_date, download_dir):
else:
os.remove(log_name)
# Close browser
driver.quit()

Loading…
Cancel
Save