Skip to content

Commit

Permalink
Reformat code to obey 80 char line limit
Browse files Browse the repository at this point in the history
  • Loading branch information
mherrmann committed Nov 15, 2023
1 parent 374656e commit 861dc6c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions helium/_impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,21 @@ def _start_firefox_driver(self, headless, options, profile):
'options': firefox_options
}
if profile:
# This is Deprecated in the driver so only do it (and trigger the warnings)
# if the user requests it
# This is Deprecated in the driver so only do it (and trigger the
# warnings) if the user requests it
kwargs['firefox_profile'] = profile
service_log_path = 'nul' if is_windows() else '/dev/null'
try:
result = Firefox(service=ServiceFirefox(log_path=service_log_path), **kwargs)
result = Firefox(
service=ServiceFirefox(log_path=service_log_path), **kwargs
)
except WebDriverException:
# This usually happens when geckodriver is not on the PATH.
driver_path = self._use_included_web_driver('geckodriver')
result = Firefox(service=ServiceFirefox(driver_path, log_path=service_log_path), **kwargs)
result = Firefox(
service=ServiceFirefox(driver_path, log_path=service_log_path),
**kwargs
)
atexit.register(self._kill_service, result.service)
return result
def start_chrome_impl(
Expand Down

0 comments on commit 861dc6c

Please sign in to comment.