From c6a1cac77384d483a993e337cd81e5344999f15a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aitor=20Mag=C3=A1n?= Date: Sat, 12 Mar 2022 19:48:20 +0100 Subject: [PATCH] Fix hospital_report --- main_daily.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)