Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #39 from CybercentreCanada/source/threatfox
Browse files Browse the repository at this point in the history
Account for comments found towards the end of CSV files
  • Loading branch information
cccs-rs authored Oct 19, 2023
2 parents 09893c0 + 960f24b commit 4be07d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netrep/update_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def update_blocklist(
for row in list(csv.reader(fp, delimiter=","))[start_index:]:
row = [r.strip(' "') for r in row]
joined_row = ",".join(row)
if any(t in joined_row for t in ignore_terms):
if any(t in joined_row for t in ignore_terms) or joined_row.startswith("#"):
# Skip row
continue

Expand Down

0 comments on commit 4be07d2

Please sign in to comment.