Skip to content

Commit 303cda9

Browse files
committed
🐛 enhance exception handling in transporter for improved error resilience
1 parent 1fca33a commit 303cda9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mysql_to_sqlite3/transporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def _transpile_mysql_type_to_sqlite(
366366
try:
367367
tree: Expression = parse_one(expr_sql, read="mysql")
368368
rendered: str = tree.sql(dialect="sqlite")
369-
except (ParseError, ValueError, Exception): # pylint: disable=W0718
369+
except (ParseError, ValueError, AttributeError, TypeError):
370370
return None
371371

372372
# Extract the type inside CAST(NULL AS ...)

0 commit comments

Comments
 (0)