@ -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()