1
0
Dustin C. Hatch bdcb8c93b6
All checks were successful
dustin/xactfetch/pipeline/head This commit looks good
xactfetch: Suppress asyncio InvalidStateError
There is currently a [bug][0] in the Python Playwright API that causes
_asyncio_ to raise an `InvalidStateError` occasionally when the
`PlaywrightContextManager` exits.  This causes the program to exit
with a nonzero return code, even though it actually completed
successfully, which will cause the Job to be retried.  To avoid this,
we can catch and ignore the spurious exception.

I've reorganized the code a bit here because we have to wrap the whole
`with` block in the `try`/`except`; moving the contents of the block
into a function keeps the indentation level from getting out of control.

[0]: https://github.com/microsoft/playwright-python/issues/2238
2024-07-11 22:34:49 -05:00
2024-05-17 10:14:57 -05:00
2023-12-12 08:09:40 -06:00
2024-07-10 14:54:23 -05:00
2023-12-12 08:09:41 -06:00
Description
No description provided
230 KiB
Languages
Python 93%
Dockerfile 5%
Shell 2%