scrape-nr-of-deaths-istanbul icon indicating copy to clipboard operation
scrape-nr-of-deaths-istanbul copied to clipboard

UnboundLocalError

Open pwsandoval opened this issue 1 year ago • 0 comments

I get this error, Is it necessary to declare an environment variable at startup?

? What is the start date for scraping? Format: 2020-10-10 (Year-Month-Day)  2020-10-10
? What is the end date for scraping? Format: 2020-10-10 (Year-Month-Day)  2020-11-10
2023-07-13 05:09:30: INFO 10/10/2020
2023-07-13 05:09:31: ERROR Timeout value connect was <object object at 0x7f407ad881e0>, but it must be an int, float or None. happened.
Traceback (most recent call last):
  File "./app.py", line 41, in <module>
    app()
  File "./app.py", line 24, in app
    dates_deaths_dict[d] = take_death_number(
  File "/app/helpers.py", line 63, in take_death_number
    driver.quit()
UnboundLocalError: local variable 'driver' referenced before assignment

pwsandoval avatar Jul 13 '23 05:07 pwsandoval