Prevent infinite loops with 25 as max attempt. Ref #100

This commit is contained in:
Alessandro Maggio
2021-03-09 20:29:05 +01:00
parent dd3f0ddeed
commit 058dd76166

View File

@@ -58,7 +58,8 @@ class TwitchLogin(object):
use_backup_flow = False
while True:
# while True:
for attempt in range(0, 25):
# self.username = input('Enter Twitch username: ')
password = (
getpass.getpass(f"Enter Twitch password for {self.username}: ")