mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-07-28 14:47:22 -07:00
quick fix for unicode errors on recycling
This commit is contained in:
+4
-1
@@ -1018,7 +1018,10 @@ def convert_hex(working_file):
|
||||
for line in f:
|
||||
match = re.search(regex, line.rstrip('\n'))
|
||||
if match:
|
||||
processed_words.append(binascii.unhexlify(match.group(1)).decode('utf-8'))
|
||||
try:
|
||||
processed_words.append(binascii.unhexlify(match.group(1)).decode('utf-8'))
|
||||
except UnicodeDecodeError:
|
||||
pass
|
||||
else:
|
||||
processed_words.append(line.rstrip('\n'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user