MDL-67189 external: Catch Throwable in call_external_function

This commit is contained in:
Dani Palou
2020-03-10 08:32:24 +01:00
parent 805361d871
commit 59964c5c95
+1 -1
View File
@@ -252,7 +252,7 @@ class external_api {
$response['error'] = false;
$response['data'] = $result;
} catch (Exception $e) {
} catch (Throwable $e) {
$exception = get_exception_info($e);
unset($exception->a);
$exception->backtrace = format_backtrace($exception->backtrace, true);