Skip to content

Commit

Permalink
Reformat to obey 80 character line length
Browse files Browse the repository at this point in the history
  • Loading branch information
mherrmann committed Feb 9, 2024
1 parent 054c254 commit 4907638
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion helium/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def start_firefox(url=None, headless=False, options=None, profile=None):
profile.set_preference("network.proxy.socks_port", PROXY_PORT)
profile.set_preference("network.proxy.socks_remote_dns", True)
profile.set_preference("network.proxy.socks_version", 5)
profile.set_preference("network.proxy.no_proxies_on", "localhost, 10.20.30.40")
profile.set_preference("network.proxy.no_proxies_on", "localhost,
10.20.30.40")
USER_AGENT = "Mozilla/5.0 ..."
profile.set_preference("general.useragent.override", USER_AGENT)
start_firefox(profile=profile)
Expand Down
3 changes: 2 additions & 1 deletion helium/_impl/selenium_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def f_decorated(self, *args, **kwargs):
return f(self, *args, **kwargs)
try:
return f(self, *args, **kwargs)
except (StaleElementReferenceException, NoSuchElementException) as original_exc:
except (StaleElementReferenceException, NoSuchElementException) \
as original_exc:
try:
frame_iterator = FrameIterator(self.target.parent)
frame_iterator.switch_to_frame(self.frame_index)
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test__impl/test_selenium_wrappers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from helium._impl.selenium_wrappers import FrameIterator, FramesChangedWhileIterating
from helium._impl.selenium_wrappers import FrameIterator, \
FramesChangedWhileIterating
from selenium.common.exceptions import NoSuchFrameException
from unittest import TestCase

Expand Down

0 comments on commit 4907638

Please sign in to comment.