Skip to content

Commit

Permalink
fix(compiler): use the correct exception type for a failed import (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Nov 4, 2024
1 parent 7f7c6d3 commit 00d83f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/sql/compilers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 00d83f3

Please sign in to comment.