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

Skip to content

Commit fcac3d4

Browse files
committed
minor beautification
1 parent 753dcb3 commit fcac3d4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/utils/hash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,12 @@ def dictionaryAttack(attack_dict):
714714
finally:
715715
if retVal:
716716
conf.hashDB.beginTransaction()
717+
717718
while not retVal.empty():
718719
_, hash_, word = item = retVal.get(block=False)
719720
conf.hashDB.write(hash_, word)
720721
results.append(item)
722+
721723
conf.hashDB.endTransaction()
722724

723725
clearConsoleLine()
@@ -795,10 +797,12 @@ class Value():
795797
finally:
796798
if retVal:
797799
conf.hashDB.beginTransaction()
800+
798801
while not retVal.empty():
799802
_, hash_, word = item = retVal.get(block=False)
800803
conf.hashDB.write(hash_, word)
801804
results.append(item)
805+
802806
conf.hashDB.endTransaction()
803807

804808
clearConsoleLine()

0 commit comments

Comments
 (0)