We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee07bc2 commit 37e0094Copy full SHA for 37e0094
jaxtyping/_decorator.py
@@ -19,7 +19,6 @@
19
20
import dataclasses
21
import functools as ft
22
-import importlib.util
23
import inspect
24
import itertools as it
25
import sys
@@ -228,9 +227,10 @@ def f(...): ...
228
227
if _tb_flag:
229
try:
230
import jax._src.traceback_util as traceback_util
231
- traceback_util.register_exclusion(__file__)
232
- except:
+ except Exception:
233
pass
+ else:
+ traceback_util.register_exclusion(__file__)
234
_tb_flag = False
235
236
# First handle the `jaxtyped("context")` usage, which is a special case.
0 commit comments