Skip to content

Commit

Permalink
bg loop exception handling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshardmind committed Jul 31, 2024
1 parent b8eb0d3 commit 630b920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion async_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.


__version__ = "5.0.1"
__version__ = "5.0.2"
4 changes: 2 additions & 2 deletions async_utils/bg_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def run_forever(loop: asyncio.AbstractEventLoop) -> None:
loop.call_exception_handler(
{
"message": "Unhandled exception in task during shutdown.",
"exception": task.exception(),
"task": exc,
"exception": exc,
"task": task,
}
)
except (asyncio.InvalidStateError, asyncio.CancelledError):
Expand Down

0 comments on commit 630b920

Please sign in to comment.