Skip to content

Commit 19cc76b

Browse files
committed
add guard for JIT_COVERAGE attr in config used
1 parent cc4682a commit 19cc76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numba_cuda/numba/cuda/misc/coverage_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def get_registered_loc_notify() -> Sequence["NotifyLocBase"]:
2121
"""
2222
Returns a list of the registered NotifyLocBase instances.
2323
"""
24-
if not config.JIT_COVERAGE:
24+
if hasattr(config, "JIT_COVERAGE") and not config.JIT_COVERAGE:
2525
# Coverage disabled.
2626
return []
2727
return list(

0 commit comments

Comments
 (0)