Skip to content

Commit

Permalink
版本更新
Browse files Browse the repository at this point in the history
  • Loading branch information
Yudaotor committed Mar 21, 2023
1 parent 9ab0174 commit e77cf4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def automaticChangePassword(self, username, password, newPassword, delimiter) ->
self.driver.find_element(by=By.XPATH, value='//*[@id="riot-account"]/div/div[1]/p').click()
self.driver.find_element(by=By.XPATH, value='//*[@id="riot-account"]/div/div[2]/div/div[3]/button[2]').click()
time.sleep(2)
Export(delimiter).write_txt(username, newPassword)
self.log.info(username + " Success")
print(username + " [green]Success")
Export(delimiter).write_txt(username, newPassword)
return True
except Exception as e:
self.log.error(username + " Fail")
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def init() -> tuple[logging.Logger, Config, webdriver.Edge, Handler]:
parser.add_argument('-c', '--config', dest="configPath", default="./config.yaml", help='Path to a custom config file')
args = parser.parse_args()
Path("./logs/").mkdir(parents=True, exist_ok=True)
Path("./accounts/").mkdir(parents=True, exist_ok=True)
Path("./newAccounts/").mkdir(parents=True, exist_ok=True)
log = Logger.createLogger()
config = Config(log, args.configPath)
try:
Expand Down

0 comments on commit e77cf4b

Please sign in to comment.