LeagueOfPoro / EsportsCapsuleFarmer

Automatically watch all live matches on lolesports and farm Esports Capsules
https://www.youtube.com/c/LeagueOfPoro
Other
95 stars 23 forks source link

Error when launching headless mode #81

Closed PockySweet closed 1 year ago

PockySweet commented 1 year ago
INFO: 2022/10/10 15:11:07 - Moving to login page
INFO: 2022/10/10 15:11:08 - Logging in
DEBUG: 2022/10/10 15:11:09 - Credentials submitted
Traceback (most recent call last):
  File "main.py", line 57, in <module>
  File "EsportsCapsuleFarmer\Setup\LoginHandler.py", line 36, in automaticLogIn
TypeError: LoginHandler.insertTwoFactorCode() takes 1 positional argument but 2 were given
[19504] Failed to execute script 'main' due to unhandled exception!
xMatador-Git commented 1 year ago

do you use 2FA? can't reproduce it on my end but it looks like the same error from PR #82 changing LoginHandler.py at line 41 to def insertTwoFactorCode(self): to def insertTwoFactorCode(self, driver): could be a fix

LeagueOfPoro commented 1 year ago

Fixed in #86