Skip to content

Commit bcf8f65

Browse files
authored
rf(py314): Replace deprecated pkgutil.find_loader (#13)
1 parent 508317c commit bcf8f65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/fmripost_phase/cli/parser.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -522,9 +522,9 @@ def parse_args(args=None, namespace=None):
522522
config.from_dict(vars(opts), init=['nipype'])
523523

524524
if not config.execution.notrack:
525-
import pkgutil
525+
import importlib.util
526526

527-
if pkgutil.find_loader('sentry_sdk') is None:
527+
if importlib.util.find_spec('sentry_sdk') is None:
528528
config.execution.notrack = True
529529
config.loggers.cli.warning('Telemetry disabled because sentry_sdk is not installed.')
530530
else:

0 commit comments

Comments
 (0)