Skip to content

Commit c62da51

Browse files
committed
forcing KeyError
1 parent a763ad1 commit c62da51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pina/trainer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ def __init__(
117117
or sys.version_info >= (3, 14)
118118
):
119119
compile = False
120+
raise KeyError
120121
warnings.warn(
121-
"Compilation is disabled for python versions >= 3.14. "
122+
"Compilation is disabled for Python 3.14+. "
122123
"Compilation is also disabled for Windows 3.2.",
123124
UserWarning,
124125
)

0 commit comments

Comments
 (0)