Skip to content

Commit 00d83f3

Browse files
authored
fix(compiler): use the correct exception type for a failed import (#10430)
1 parent 7f7c6d3 commit 00d83f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibis/backends/sql/compilers/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def AlterTable(*args, kind="TABLE", **kwargs):
4646

4747
try:
4848
from sqlglot.expressions import AlterRename as RenameTable
49-
except AttributeError:
49+
except ImportError:
5050
from sqlglot.expressions import RenameTable # noqa: F401
5151

5252

0 commit comments

Comments
 (0)