Skip to content

Commit 5ce68a8

Browse files
committed
Added default value for _fH; #22
1 parent 92ed03a commit 5ce68a8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

favUp.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def run(self):
178178
for w in self.webList:
179179
self._iterator.set_description(f"[+] iterating over domains | processing {w}")
180180
self._iterator.update(1)
181+
_fH = "not-found"
181182
try:
182183
headers = {
183184
"User-Agent": self.get_user_agent(),
@@ -187,8 +188,6 @@ def run(self):
187188
data = self.searchFaviconHTML(f"https://{w}")
188189
if not isinstance(data, str):
189190
_fH = self.faviconHash(data.content, web_source=True)
190-
else:
191-
_fH = "not-found"
192191
except requests.exceptions.ConnectionError:
193192
self._iterator.write(f"[x] Connection refused by {w}.")
194193
if len(self.webList) == 1:

0 commit comments

Comments
 (0)