update: bump 'common' version to 0.1.21

This commit is contained in:
2026-08-14 14:17:09 +08:00
parent a8fcad1843
commit ad34f9018c
2 changed files with 2 additions and 2 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')):
try:
setup(driver, parameters)
until(lambda x: 'loginProgress' in x.find_element(By.TAG_NAME, "body").get_attribute('class'), watch=False)
until(lambda x: 'loginProgress' in x.find_element(By.TAG_NAME, "body").get_attribute('class'))
account = str(parameters['account'])
password = str(parameters['password'])
logger.info('Logging in as %s (%s)', account.split('@', 1).pop(0).capitalize(), account)
@@ -202,7 +202,7 @@ def main(driver: WebDriver, logger = logging.getLogger('main')):
if parameters['open']:
try:
path = Path(parameters['directory']) / filename
until(lambda _: path.exists(), watch=False)
until(lambda _: path.exists())
Popen(['start', str(path)], shell=True)
except Exception as e:
logger.warning('Unable to open exported excel file at %s', str(path), exc_info=e)
BIN
View File
Binary file not shown.