Skip to content

Commit

Permalink
Remove generator deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed May 24, 2018
1 parent e706239 commit e3cfa00
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wfuzz/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def __iter__(self):

def _gen(self):
while 1:
payload_list = next(self.__payload)
try:
payload_list = next(self.__payload)
except StopIteration:
return

for name in self.__encoders:
if name.find('@') > 0:
Expand Down

0 comments on commit e3cfa00

Please sign in to comment.