From 948c702ad46b08a1ada61e8aedeea42a8fcd511c Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 19 May 2026 18:28:20 +1200 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/Appwrite/Platform/Workers/StatsResources.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/StatsResources.php b/src/Appwrite/Platform/Workers/StatsResources.php index 65d78dd818..f56813a6d9 100644 --- a/src/Appwrite/Platform/Workers/StatsResources.php +++ b/src/Appwrite/Platform/Workers/StatsResources.php @@ -81,7 +81,12 @@ class StatsResources extends Action $this->documents = []; if ($statsResources->gauges !== []) { - $this->writeGauges($getLogsDB, $project, $statsResources->gauges); + try { + $this->writeGauges($getLogsDB, $project, $statsResources->gauges); + } catch (Throwable $th) { + call_user_func($this->logError, $th); + } + return; }