Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 704e1a4

Browse files
committed
minor minor update
1 parent fcac3d4 commit 704e1a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils/hash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def __bruteProcessVariantA(attack_info, hash_regex, wordlist, suffix, retVal, pr
454454
except KeyboardInterrupt:
455455
raise
456456

457-
except UnicodeEncodeError:
457+
except (UnicodeEncodeError, UnicodeDecodeError):
458458
pass # ignore possible encoding problems caused by some words in custom dictionaries
459459

460460
except Exception, ex:
@@ -520,7 +520,7 @@ def __bruteProcessVariantB(user, hash_, kwargs, hash_regex, wordlist, suffix, re
520520
except KeyboardInterrupt:
521521
raise
522522

523-
except UnicodeEncodeError:
523+
except (UnicodeEncodeError, UnicodeDecodeError):
524524
pass # ignore possible encoding problems caused by some words in custom dictionaries
525525

526526
except Exception, ex:

0 commit comments

Comments
 (0)