From e683476fb2af87af90547de415fda1a8f090bccf Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sun, 12 Jun 2022 12:22:07 +0800 Subject: [PATCH] avoid the whole process taken down by a single _process_result --- nvchecker/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nvchecker/core.py b/nvchecker/core.py index 4f86de0..7130bd7 100644 --- a/nvchecker/core.py +++ b/nvchecker/core.py @@ -366,7 +366,11 @@ async def process_result( try: while True: r = await result_q.get() - r1 = _process_result(r) + try: + r1 = _process_result(r) + except Exception as e: + logger.exception('error processing result', result=r) + r1 = e if isinstance(r1, Exception): entry_waiter.set_exception(r.name, r1) has_failures = True