Skip to content

Commit

Permalink
fix(movielens): properly close browser - fixes #271
Browse files Browse the repository at this point in the history
  • Loading branch information
StegSchreck committed Dec 28, 2023
1 parent 51803ce commit e5031d7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion RatS/movielens/movielens_ratings_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def _call_download_url(self):
)

def _convert_csv_row_to_movie(self, headers, row):

if self.args and self.args.verbose and self.args.verbose >= 1:
sys.stdout.write(
f"\r===== {self.site.site_displayname}: reading movie from CSV: \r\n"
Expand Down
2 changes: 1 addition & 1 deletion RatS/utils/browser_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ def _create_browser_options(log_level):
return options

def kill(self):
self.browser.service.stop()
self.browser.stop_client()
self.browser.close()
try:
self.browser.quit()
except WebDriverException:
pass
self.browser.service.stop()

if self.args and not self.args.show_browser:
self.display.stop()

0 comments on commit e5031d7

Please sign in to comment.