diff --git a/main_daily.py b/main_daily.py index 14a7f1a..35f9f07 100644 --- a/main_daily.py +++ b/main_daily.py @@ -46,7 +46,10 @@ def subtract_days_ignoring_weekends(initial_date, days_to_substract): def update_database(today): pcrs_report = SpainCovid19MinistryReport(today, 1) - hospital_report = SpainCovid19MinistryReport(today, 4, (179, 77, 179+280, 77+707)) + try: + hospital_report = SpainCovid19MinistryReport(today, 4) + except: + hospital_report = SpainCovid19MinistryReport(today, 4, (179, 77, 179+280, 77+707)) try: accumulated_pcrs_today = pcrs_report.get_column_data(1)