mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-08 06:22:23 -04:00
check for None
This commit is contained in:
parent
92c137f402
commit
96e499887b
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ class Browser:
|
||||||
behavior_script, behavior_timeout_custom = brozzler.behavior_script(
|
behavior_script, behavior_timeout_custom = brozzler.behavior_script(
|
||||||
page_url, behavior_parameters,
|
page_url, behavior_parameters,
|
||||||
behaviors_dir=behaviors_dir)
|
behaviors_dir=behaviors_dir)
|
||||||
if behavior_timeout_custom > behavior_timeout:
|
if behavior_timeout_custom and behavior_timeout_custom > behavior_timeout:
|
||||||
behavior_timeout = behavior_timeout_custom
|
behavior_timeout = behavior_timeout_custom
|
||||||
self.run_behavior(behavior_script, timeout=behavior_timeout)
|
self.run_behavior(behavior_script, timeout=behavior_timeout)
|
||||||
if skip_extract_outlinks:
|
if skip_extract_outlinks:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue