Skip to content

Commit

Permalink
Error on NWB files with external links
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Nov 29, 2021
1 parent 5128abb commit d625c62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dandi/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
get_nwb_version,
ignore_benign_pynwb_warnings,
metadata_cache,
nwb_has_external_links,
)
from .utils import ensure_datetime, get_mime_type, get_utcnow_datetime

Expand Down Expand Up @@ -47,6 +48,9 @@ def get_metadata(path):
lgr.debug("Failed to get metadata for %s: %s", path, exc)
return None

if nwb_has_external_links(path):
raise NotImplementedError("NWB files with external links are not supported")

# First read out possibly available versions of specifications for NWB(:N)
meta["nwb_version"] = get_nwb_version(path)

Expand Down

0 comments on commit d625c62

Please sign in to comment.