aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/ingest_file.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-26 13:54:35 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-26 13:54:35 -0700
commit02cac8f857fe21474ab25aa7150bed2ac5b970d5 (patch)
tree5163390339c446257f4240579e14e81588fd3632 /python/sandcrawler/ingest_file.py
parent6650f3862b87bdeac4f3bb9d3561f934858956a0 (diff)
downloadsandcrawler-02cac8f857fe21474ab25aa7150bed2ac5b970d5.tar.gz
sandcrawler-02cac8f857fe21474ab25aa7150bed2ac5b970d5.zip
flake8 clean (with current settings)
Diffstat (limited to 'python/sandcrawler/ingest_file.py')
-rw-r--r--python/sandcrawler/ingest_file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/sandcrawler/ingest_file.py b/python/sandcrawler/ingest_file.py
index 556e573..bc8643b 100644
--- a/python/sandcrawler/ingest_file.py
+++ b/python/sandcrawler/ingest_file.py
@@ -399,8 +399,8 @@ class IngestFileWorker(SandcrawlerWorker):
assert resource.body
try:
html_doc = HTMLParser(resource.body)
- except ValueError as ve:
- return dict(status="html-selectolax-error", )
+ except ValueError:
+ return dict(status="html-selectolax-error")
html_biblio = html_extract_biblio(resource.terminal_url, html_doc)
assert html_biblio
html_body = html_extract_body_teixml(resource.body)