Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def wait_until_spider_finished(self):
This method also enforces the "maxDuration" limit of the spider, ZAP normally enforces it on its own,
but there are cases where the spider has stalled and ZAP was unable to enforce it on its own.
"""
if "maxDuration" in self.get_config.get_active_spider_config:
if self.get_config.get_active_spider_config is not None and "maxDuration" in self.get_config.get_active_spider_config:
# convert to seconds
max_duration = self.get_config.get_active_spider_config["maxDuration"] * 60
else:
Expand Down