(args, account)
| 668 | |
| 669 | # Delay each thread start time so that logins only occur ~1s |
| 670 | def stagger_thread(args, account): |
| 671 | if args.accounts.index(account) == 0: |
| 672 | return # No need to delay the first one |
| 673 | delay = args.accounts.index(account) + ((random.random() - .5) / 2) |
| 674 | log.debug('Delaying thread startup for %.2f seconds', delay) |
| 675 | time.sleep(delay) |
| 676 | |
| 677 | |
| 678 | class TooManyLoginAttempts(Exception): |
no outgoing calls
no test coverage detected