Skip to content

Commit

Permalink
refactor(sa_dump_seeds): remove default for sleep parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
emedav committed Aug 19, 2024
1 parent 040b978 commit bb3c305
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gallia/commands/scan/uds/sa_dump_seeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def configure_parser(self) -> None:
)
self.parser.add_argument(
"--sleep",
default=0,
type=float,
metavar="FLOAT",
help="Attempt to fool brute force protection by sleeping for N seconds between seed requests.",
Expand Down Expand Up @@ -219,7 +218,7 @@ async def main(self, args: Namespace) -> None:
# Re-enter session. Checking/logging will be done at the beginning of next iteration
await self.ecu.set_session(session)

if args.sleep > 0:
if args.sleep is not None:
logger.info(f"Sleeping for {args.sleep} seconds between seed requests…")
await asyncio.sleep(args.sleep)

Expand Down

0 comments on commit bb3c305

Please sign in to comment.