MDL-67189 external: Catch Throwable in call_external_function
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user