We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 508317c commit bcf8f65Copy full SHA for bcf8f65
src/fmripost_phase/cli/parser.py
@@ -522,9 +522,9 @@ def parse_args(args=None, namespace=None):
522
config.from_dict(vars(opts), init=['nipype'])
523
524
if not config.execution.notrack:
525
- import pkgutil
+ import importlib.util
526
527
- if pkgutil.find_loader('sentry_sdk') is None:
+ if importlib.util.find_spec('sentry_sdk') is None:
528
config.execution.notrack = True
529
config.loggers.cli.warning('Telemetry disabled because sentry_sdk is not installed.')
530
else:
0 commit comments