Skip to content

Commit ad0eac7

Browse files
committed
fix: catch BaseException in subprocess
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 4deda84 commit ad0eac7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

context_chat_backend/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def exception_wrap(fun: Callable | None, *args, resconn: Connection, stdconn: Co
9292
if fun is None:
9393
return resconn.send({ 'value': None, 'error': None })
9494
resconn.send({ 'value': fun(*args, **kwargs), 'error': None })
95-
except Exception as e:
95+
except BaseException as e:
9696
tb = traceback.format_exc()
9797
resconn.send({ 'value': None, 'error': e, 'traceback': tb })
9898
finally:

0 commit comments

Comments
 (0)