Skip to content

Commit

Permalink
Merge pull request #1294 from yogeshojha/1263-error-keyerrorsubdomain_id
Browse files Browse the repository at this point in the history
fix context key error #1263 #1209
  • Loading branch information
yogeshojha committed Jul 2, 2024
2 parents 9db6c04 + 2fc5109 commit 190d197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ def dir_file_fuzz(self, ctx={}, description=None):
dirscan.save()

# Get subdomain and add dirscan
if ctx['subdomain_id'] > 0:
if ctx.get('subdomain_id', 0) > 0:
subdomain = Subdomain.objects.get(id=ctx['subdomain_id'])
else:
subdomain_name = get_subdomain_from_url(endpoint.http_url)
Expand Down

0 comments on commit 190d197

Please sign in to comment.