diff --git a/main.py b/main.py index b9ec158f..5e58b7a4 100644 --- a/main.py +++ b/main.py @@ -239,7 +239,6 @@ def executeBot(currentAccount, args: argparse.Namespace): desktopBrowser.closeBrowser() if remainingSearchesM != 0: - desktopBrowser.closeBrowser() with Browser(mobile=True, account=currentAccount, args=args) as mobileBrowser: utils = mobileBrowser.utils accountPointsCounter = Login(mobileBrowser).login() diff --git a/requirements.txt b/requirements.txt index 042c60a5..da59db84 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,3 +9,4 @@ psutil blinker==1.7.0 #prevents issues on newer versions apprise pyyaml +urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability diff --git a/src/browser.py b/src/browser.py index 5f83b5bf..d668246a 100644 --- a/src/browser.py +++ b/src/browser.py @@ -53,7 +53,7 @@ def closeBrowser(self) -> None: """Perform actions to close the browser cleanly.""" # Close the web browser with contextlib.suppress(Exception): - self.webdriver.close() + self.webdriver.quit() def browserSetup( self,