mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-20 04:34:37 -04:00
worker: fix possibly-unbound status code
We assigned this inside an exception handler, and allow processing to continue on after catching the exception.
This commit is contained in:
parent
d33df40283
commit
70e4c3d7f6
1 changed files with 1 additions and 0 deletions
|
@ -339,6 +339,7 @@ class BrozzlerWorker:
|
|||
raise brozzler.PageConnectionError()
|
||||
except brozzler.PageInterstitialShown:
|
||||
page_logger.info("page interstitial shown (http auth)")
|
||||
status_code = -1
|
||||
|
||||
if enable_youtube_dl and self.should_ytdlp(
|
||||
page_logger, site, page, status_code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue