diff --git a/EsportsCapsuleFarmer/Setup/LoginHandler.py b/EsportsCapsuleFarmer/Setup/LoginHandler.py index 2f135d9..a506708 100644 --- a/EsportsCapsuleFarmer/Setup/LoginHandler.py +++ b/EsportsCapsuleFarmer/Setup/LoginHandler.py @@ -33,7 +33,7 @@ def automaticLogIn(self, username, password): # check for 2FA time.sleep(5) if len(self.driver.find_elements(by=By.CSS_SELECTOR, value="div.text__web-code")) > 0: - self.insertTwoFactorCode(self.driver) + self.insertTwoFactorCode() # wait until the login process finishes wait.until(ec.presence_of_element_located((By.CSS_SELECTOR, "div.riotbar-summoner-name")))