From 00846b88b61bb40ebc16d2f8281025ac5e2bc012 Mon Sep 17 00:00:00 2001 From: MeditationDuck Date: Mon, 30 Sep 2024 15:51:11 +0200 Subject: [PATCH] :pencil2: fix repeatly try to open exceptinal handler when exception happen in multiple try except block --- wake/testing/pytest_plugin_multiprocess.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wake/testing/pytest_plugin_multiprocess.py b/wake/testing/pytest_plugin_multiprocess.py index f84ed6a7..8970c1e7 100644 --- a/wake/testing/pytest_plugin_multiprocess.py +++ b/wake/testing/pytest_plugin_multiprocess.py @@ -93,6 +93,9 @@ def _exception_handler( if self._keyboard_interrupt: return + if self._exception_handled: + return + self._cleanup_stdio() self._exception_handled = True