Skip to content

Commit

Permalink
Replace StopIteration with return per PEP 479
Browse files Browse the repository at this point in the history
  • Loading branch information
bwatters-r7 committed Feb 11, 2019
1 parent 74ed8ee commit 03e3e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/meterpreter/meterpreter.py
Expand Up @@ -337,7 +337,7 @@ def packet_enum_tlvs(pkt, tlv_type=None):
pass
yield {'type': tlv[1], 'length': tlv[0], 'value': val}
offset += tlv[0]
raise StopIteration()
return

@export
def packet_get_tlv(pkt, tlv_type):
Expand Down

0 comments on commit 03e3e20

Please sign in to comment.