Catching Throwable instead of Exception

This commit is contained in:
Pavel Shevaev 2023-11-10 10:19:25 +03:00
parent 8755f2e108
commit 9249d49d54
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
namespace ATF; namespace ATF;
use Exception; use Exception;
use Throwable;
use Amp; use Amp;
use taskman; use taskman;
@ -383,7 +384,7 @@ class Plan
yield $this->_checkExtStatusAsync($task, $timeout); yield $this->_checkExtStatusAsync($task, $timeout);
break; break;
} }
catch(Exception $e) catch(Throwable $e)
{ {
$last_error = $e->getMessage(); $last_error = $e->getMessage();
continue; continue;