update: bump 'common' version to 0.1.21
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user