From 8a5a6037b1326e29a81eb1c6bcc4b1f3611dc6be Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Tue, 28 Oct 2025 16:50:38 +1300 Subject: [PATCH] Return empty on no collection, fallback to route validation --- src/Appwrite/Utopia/Request/Filters/V20.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Appwrite/Utopia/Request/Filters/V20.php b/src/Appwrite/Utopia/Request/Filters/V20.php index 3783a61947..aafd273721 100644 --- a/src/Appwrite/Utopia/Request/Filters/V20.php +++ b/src/Appwrite/Utopia/Request/Filters/V20.php @@ -146,8 +146,8 @@ class V20 extends Filter if ($database->isEmpty()) { return []; } - } catch (NotFound) { - throw new Exception(Exception::DATABASE_NOT_FOUND); + } catch (\Throwable) { + return []; } try { @@ -158,8 +158,8 @@ class V20 extends Filter if ($collection->isEmpty()) { return []; } - } catch (NotFound) { - throw new Exception(Exception::COLLECTION_NOT_FOUND); + } catch (\Throwable) { + return []; } $attributes = $collection->getAttribute('attributes', []);