-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: better handle CancelledError from static analysis
We have seen stacktraces of static analysis failing with `asyncio.exceptions.CancelledError: Cancelled by cancel scope 7f7514b8ffa0` I do believe that the initial cause is one of the requests failing, and that cancels every other task, but there's a still possible scenario in which the outer future (`asyncio.gather itself`) gets cancelled. Assuming that it happens and that we do get the same exception bubble up, these changes would let the program exit (more) gracefully. Maybe there are other exceptions there that we should also look for?
- Loading branch information
1 parent
1da13a0
commit 0fed329
Showing
2 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters