Skip to content

Commit 6425e31

Browse files
committed
linting changes
1 parent 8009090 commit 6425e31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

zendriver/core/tab.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,15 +384,15 @@ async def xpath(self, xpath: str, timeout: float = 2.5) -> List[Element]: # noq
384384
items: List[Element] = []
385385
loop = asyncio.get_running_loop()
386386
start_time = loop.time()
387-
387+
388388
while (loop.time() - start_time) < timeout and len(items) == 0:
389389
try:
390390
await self.send(cdp.dom.enable(), True)
391-
items = await self.find_all(xpath, timeout=0)
392-
except Exception as e:
393-
pass # find_elements_by_text may raise exception
391+
items = await self.find_all(xpath, timeout=0)
392+
except Exception:
393+
pass # find_elements_by_text may raise exception
394394
await self.disable_dom_agent()
395-
395+
396396
return items
397397

398398
async def get(

0 commit comments

Comments
 (0)