Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sohang3112 committed Dec 2, 2023
1 parent 4297d9e commit 4686149
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions webdriver_manager/core/driver_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


class DriverCacheManager(object):
def __init__(self, root_dir=None, valid_range=1, file_manager=None,
def __init__(self, root_dir=None, valid_range=1, file_manager=None,
browser_path: Optional[str] = None):
self.browser_path = browser_path
self._root_dir = DEFAULT_USER_HOME_CACHE_PATH
Expand Down Expand Up @@ -106,7 +106,7 @@ def find_driver(self, driver: Driver):
browser_version = self._os_system_manager.get_browser_version_from_os(browser_type)
else:
browser_version = self._os_system_manager.get_browser_version_from_path(browser_type, self.browser_path)

if not browser_version:
return None

Expand Down
3 changes: 2 additions & 1 deletion webdriver_manager/core/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def __init__(
self._os_system_manager = OperationSystemManager()

if not os.access(browser_path, os.X_OK):
raise PermissionError(f'Provided browser path is not executable: {browser_path!r}')
raise PermissionError(
f'Provided browser path is not executable: {browser_path!r}')
self.browser_path = browser_path
log("====== WebDriver manager ======")

Expand Down

0 comments on commit 4686149

Please sign in to comment.