Minor fixes.
This commit is contained in:
parent
e34a34acaf
commit
007f458cd5
3 changed files with 140 additions and 39 deletions
|
|
@ -95,7 +95,10 @@ class UrlAttack:
|
|||
except Exception as e:
|
||||
self.success = False
|
||||
|
||||
if random.randrange(0, 100) < UrlAttack.identity_change_probability:
|
||||
if (
|
||||
not self.success
|
||||
or random.randrange(0, 100) < UrlAttack.identity_change_probability
|
||||
):
|
||||
self._change_identity()
|
||||
|
||||
def _change_identity(self) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue