Skip to content

Commit

Permalink
rf(py314): Replace deprecated pkgutil.find_loader
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 16, 2024
1 parent 063b33e commit 72f9c67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fmripost_aroma/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,9 +501,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

Check warning on line 504 in src/fmripost_aroma/cli/parser.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/cli/parser.py#L504

Added line #L504 was not covered by tests

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:
Expand Down

0 comments on commit 72f9c67

Please sign in to comment.