From d5f4d1acf2da553a3b6d664b7ccd3c8079ebaf74 Mon Sep 17 00:00:00 2001 From: Jan Polonsky Date: Thu, 24 Oct 2024 15:47:39 +0200 Subject: [PATCH] Removed extra step in web driver exiting (replaces #388) --- src/collectors/collectors/web_collector.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/collectors/collectors/web_collector.py b/src/collectors/collectors/web_collector.py index 6a67dabc..d2e81389 100644 --- a/src/collectors/collectors/web_collector.py +++ b/src/collectors/collectors/web_collector.py @@ -597,16 +597,10 @@ def __dispose_of_headless_driver(self, driver): Parameters: driver: The headless browser driver to be disposed of. """ - try: - driver.close() - except Exception as error: - logger.exception(f"{self.collector_source} Could not close the headless browser driver: {error}") - pass try: driver.quit() except Exception as error: logger.exception(f"{self.collector_source} Could not quit the headless browser driver: {error}") - pass def __run_tor(self): """Run The Onion Router service in a subprocess."""