Skip to content
This repository has been archived by the owner on Aug 17, 2023. It is now read-only.

Commit

Permalink
Removed named expression
Browse files Browse the repository at this point in the history
  • Loading branch information
dfirsec committed Jun 29, 2022
1 parent 210db9c commit 8894f0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ def blacklist_worker(self, blacklist):
try:
req = requests.get(blacklist, headers=helpers.headers(), timeout=3)
req.encoding = "utf-8"
if match := re.findall(self.query, req.text):
match = re.findall(self.query, req.text)
if match:
logger.warning(f"\u2716 {self.query} --> {blacklist}")
self.bl_matches += 1
except AddressValueError as err:
Expand Down

0 comments on commit 8894f0c

Please sign in to comment.