From 9249d49d54bd42cbea80799158a07cce870b818d Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 10 Nov 2023 10:19:25 +0300 Subject: [PATCH] Catching Throwable instead of Exception --- plan.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plan.inc.php b/plan.inc.php index 92dfd96..adf09c4 100644 --- a/plan.inc.php +++ b/plan.inc.php @@ -2,6 +2,7 @@ namespace ATF; use Exception; +use Throwable; use Amp; use taskman; @@ -383,7 +384,7 @@ class Plan yield $this->_checkExtStatusAsync($task, $timeout); break; } - catch(Exception $e) + catch(Throwable $e) { $last_error = $e->getMessage(); continue;