diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 15:55:12 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-11-30 15:55:12 -0800 |
commit | e100e404ad11c13250d6e52713db93f402f30d1b (patch) | |
tree | 2340c2f40c6f2a41c930ca252734e34758cd1fa5 | |
parent | 2cf76354dabacdb54e4101cc5df13c6b9ccade70 (diff) | |
download | chocula-e100e404ad11c13250d6e52713db93f402f30d1b.tar.gz chocula-e100e404ad11c13250d6e52713db93f402f30d1b.zip |
handle homepage check with no status (skip, etc)
-rw-r--r-- | chocula/database.py | 2 |
1 files changed, 1 insertions, 1 deletions
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"), |