Skip to content

Commit

Permalink
Failsafe etelemetry import
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Feb 2, 2024
1 parent 98f5cf7 commit 5e61268
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dandi/files/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from dandischema.models import BareAsset, CommonModel
from dandischema.models import Dandiset as DandisetMeta
from dandischema.models import get_schema_version
from etelemetry import get_project
from packaging.version import Version
from pydantic import ValidationError
import requests
Expand Down Expand Up @@ -737,6 +736,8 @@ def _get_nwb_inspector_version():
_current_nwbinspector_version = get_package_version(name="nwbinspector")
# Ensure latest version of NWB Inspector is installed and used client-side
try:
from etelemetry import get_project

Check warning on line 739 in dandi/files/bases.py

View check run for this annotation

Codecov / codecov/patch

dandi/files/bases.py#L739

Added line #L739 was not covered by tests

max_version = Version(
get_project(repo="NeurodataWithoutBorders/nwbinspector")["version"]
)
Expand Down

0 comments on commit 5e61268

Please sign in to comment.