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

Skip to content

Commit ee1017a

Browse files
committed
Minor fix
1 parent 5324018 commit ee1017a

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
@@ -507,8 +507,8 @@ def _bruteProcessVariantA(attack_info, hash_regex, suffix, retVal, proc_id, proc
507507
except (UnicodeEncodeError, UnicodeDecodeError):
508508
pass # ignore possible encoding problems caused by some words in custom dictionaries
509509

510-
except:
511-
warnMsg = "there was a problem while hashing entry: %s. " % repr(word)
510+
except Exception, e:
511+
warnMsg = "there was a problem while hashing entry: %s (%s). " % (repr(word), e)
512512
warnMsg += "Please report by e-mail to %s" % ML
513513
logger.critical(warnMsg)
514514

0 commit comments

Comments
 (0)