diff --git a/main.py b/main.py index ffd3924..e6c92ef 100644 --- a/main.py +++ b/main.py @@ -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) diff --git a/requirements.txt b/requirements.txt index d228b5d..7853cd8 100644 Binary files a/requirements.txt and b/requirements.txt differ