Skip to content

Commit

Permalink
fix UnboundLocalError
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Aug 30, 2022
1 parent 2340e2e commit 797bac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urldownloader/urldownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def execute(self, request: ServiceRequest) -> None:
# Make sure this is the first URL fetched
urls = [(submitted_url, 10000)] if submitted_url and request.task.depth == 0 else []

tags = request.task.tags
# Distinguish between only fetching the submitted_url vs all in the submission
if not request.get_param('submitted_url_only'):
# Only concerned with static/dynamic URIs found by prior services
tags = request.task.tags
urls.extend(tags.get('network.static.uri', []) + tags.get('network.dynamic.uri', []))

request.temp_submission_data.setdefault('visited_urls', {})
Expand Down

0 comments on commit 797bac7

Please sign in to comment.