Skip to content

Commit

Permalink
Merge pull request #1399 from dandi/et
Browse files Browse the repository at this point in the history
Failsafe etelemetry import
  • Loading branch information
yarikoptic authored Feb 2, 2024
2 parents 98f5cf7 + 5e61268 commit 9abebe1
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

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

0 comments on commit 9abebe1

Please sign in to comment.