mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
improve utils.pause
This commit is contained in:
@@ -143,7 +143,7 @@ def on_sigint(_sig:int, _frame) -> None:
|
||||
|
||||
|
||||
def pause(min_ms:int = 200, max_ms:int = 2000) -> None:
|
||||
if min_ms == max_ms:
|
||||
if max_ms <= min_ms:
|
||||
duration = min_ms
|
||||
else:
|
||||
duration = secrets.randbelow(max_ms - min_ms) + min_ms
|
||||
|
||||
Reference in New Issue
Block a user