From e100e404ad11c13250d6e52713db93f402f30d1b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 30 Nov 2021 15:55:12 -0800 Subject: handle homepage check with no status (skip, etc) --- chocula/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chocula/database.py b/chocula/database.py index 0af64a5..f3ae536 100644 --- a/chocula/database.py +++ b/chocula/database.py @@ -338,7 +338,7 @@ class ChoculaDatabase: cur.execute( "UPDATE homepage SET status_code=?, crawl_error=?, terminal_url=?, terminal_status_code=?, platform_software=?, issnl_in_body=?, blocked=?, gwb_url_success_dt=?, gwb_terminal_url_success_dt=? WHERE url=?", ( - row["status_code"], + row.get("status_code") or -1, row.get("crawl_error"), row.get("terminal_url"), row.get("terminal_status_code"), -- cgit v1.2.3