Skip to content

Commit

Permalink
Merge pull request #400 from Progress1/main
Browse files Browse the repository at this point in the history
Removed extra step in web driver exiting (replaces  #388)
  • Loading branch information
Progress1 authored Oct 24, 2024
2 parents 5b9a8e1 + d5f4d1a commit 3d04082
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/collectors/collectors/web_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 3d04082

Please sign in to comment.