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:
|
try:
|
||||||
setup(driver, parameters)
|
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'])
|
account = str(parameters['account'])
|
||||||
password = str(parameters['password'])
|
password = str(parameters['password'])
|
||||||
logger.info('Logging in as %s (%s)', account.split('@', 1).pop(0).capitalize(), account)
|
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']:
|
if parameters['open']:
|
||||||
try:
|
try:
|
||||||
path = Path(parameters['directory']) / filename
|
path = Path(parameters['directory']) / filename
|
||||||
until(lambda _: path.exists(), watch=False)
|
until(lambda _: path.exists())
|
||||||
Popen(['start', str(path)], shell=True)
|
Popen(['start', str(path)], shell=True)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning('Unable to open exported excel file at %s', str(path), exc_info=e)
|
logger.warning('Unable to open exported excel file at %s', str(path), exc_info=e)
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user