From 00d83f393927b799339cecd6d4272df7feff0651 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:51:42 -0500 Subject: [PATCH] fix(compiler): use the correct exception type for a failed import (#10430) --- ibis/backends/sql/compilers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/backends/sql/compilers/base.py b/ibis/backends/sql/compilers/base.py index e64c664ee6bb..02b198ab930a 100644 --- a/ibis/backends/sql/compilers/base.py +++ b/ibis/backends/sql/compilers/base.py @@ -46,7 +46,7 @@ def AlterTable(*args, kind="TABLE", **kwargs): try: from sqlglot.expressions import AlterRename as RenameTable -except AttributeError: +except ImportError: from sqlglot.expressions import RenameTable # noqa: F401