Skip to content

Commit f757834

Browse files
authored
fix: handle span NoneType exception in skorch patching (#182)
1 parent f59bd6f commit f757834

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ibis_ml/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
def _auto_patch_skorch() -> None:
4141
try:
4242
import skorch.net
43-
except ImportError:
43+
except (ImportError, AttributeError):
44+
# ImportError: skorch not installed
45+
# AttributeError: Python 3.13 docstring parsing issue in skorch
4446
return
4547

4648
import ibis.expr.types as ir

0 commit comments

Comments
 (0)