Skip to content

Commit

Permalink
Instantiate empty list for domain tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Jun 26, 2024
1 parent 295aad5 commit 5a959d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions badlist/badlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def execute(self, request):

# Add the uri file type data as potential tags to check
tags = request.task.tags
tags.setdefault("network.static.domain", [])
tags.setdefault("network.dynamic.domain", [])
if request.file_type.startswith("uri/") and request.task.fileinfo.uri_info:
tags.setdefault("network.static.uri", [])
tags.setdefault("network.dynamic.uri", [])
Expand Down

0 comments on commit 5a959d7

Please sign in to comment.