Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wpt-pr-bot committed Feb 21, 2024
1 parent 5f4593f commit 90c98f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/wptrunner/wptrunner/executors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ def process_action(self, url, payload):
# AttributeError got an obj property in Python 3.10, for older versions we
# fall back to looking at the error message.
if ((hasattr(e, "obj") and getattr(e, "obj") == self.protocol) or
f"'{self.protocol.__class__.__name__}' object has no attribute" in str(e)):
f"'{self.protocol.__class__.__name__}' object has no attribute" in str(e)):
raise NotImplementedError from e
raise
except self.unimplemented_exc:
Expand Down
2 changes: 1 addition & 1 deletion tools/wptrunner/wptrunner/executors/executorwebdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def unsubscribe(self, events):
self.logger.info("Unsubscribing from events %s" % events)
return await self.webdriver.bidi_session.session.unsubscribe(events=events, contexts=None)

def add_event_listener(self, fn, event):
def add_event_listener(self, fn, event=None):
print("adding event listener %s" % event)
return self.webdriver.bidi_session.add_event_listener(name=event, fn=fn)

Expand Down

0 comments on commit 90c98f4

Please sign in to comment.