From 3da243d910a91bf57b5af9b3c529292be2048fce Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Thu, 17 Oct 2024 08:32:07 -0400 Subject: [PATCH] rf(py314): Replace deprecated pkgutil.find_loader (#21) --- src/fmripost_rapidtide/cli/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fmripost_rapidtide/cli/parser.py b/src/fmripost_rapidtide/cli/parser.py index 399d189..06ea402 100644 --- a/src/fmripost_rapidtide/cli/parser.py +++ b/src/fmripost_rapidtide/cli/parser.py @@ -944,9 +944,9 @@ def parse_args(args=None, namespace=None): config.from_dict(vars(opts), init=['nipype']) if not config.execution.notrack: - import pkgutil + import importlib.util - if pkgutil.find_loader('sentry_sdk') is None: + if importlib.util.find_spec('sentry_sdk') is None: config.execution.notrack = True config.loggers.cli.warning('Telemetry disabled because sentry_sdk is not installed.') else: