From 07d29d6614ea2dd8d4d7ab0b0f32a444e4586291 Mon Sep 17 00:00:00 2001 From: Shahmir Varqha Date: Wed, 22 Oct 2025 14:21:31 +0800 Subject: [PATCH] add catches for get_schemas --- marimo/_sql/engines/ibis.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/marimo/_sql/engines/ibis.py b/marimo/_sql/engines/ibis.py index eff450546eb..aeb53d89efa 100644 --- a/marimo/_sql/engines/ibis.py +++ b/marimo/_sql/engines/ibis.py @@ -202,7 +202,6 @@ def _get_schemas( schemas: list[Schema] = [] - # Try to get schemas, with fallback for backends that don't support catalog parameter try: schema_names = self._connection.list_databases(catalog=database) except (TypeError, AttributeError) as e: @@ -219,6 +218,14 @@ def _get_schemas( "Backend doesn't support list_databases, using default schema" ) schema_names = [self.default_schema or "main"] + except NotImplementedError: + LOGGER.info("Introspection is not supported for this database") + return [] + except Exception: + LOGGER.warning( + "Failed to get schemas for this database", exc_info=True + ) + return [] for schema_name in schema_names: if schema_name and schema_name.lower() in meta_schemas: