Skip to content

Commit

Permalink
remove blocking logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Nov 12, 2024
1 parent 5628bc1 commit 45360f9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions dandi/dandiapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,17 +649,17 @@ def check_schema_version(self, schema_version: str | None = None) -> None:
schema_version = models.get_schema_version()
server_info = self.get("/info/")
server_schema_version = server_info.get("schema_version")
if not server_schema_version:
raise RuntimeError(
"Server did not provide schema_version in /info/;"
f" returned {server_info!r}"
)
if server_schema_version != schema_version:
raise SchemaVersionError(
f"Server requires schema version {server_schema_version};"
f" client only supports {schema_version}. You may need to"
" upgrade dandi and/or dandischema."
)
# if not server_schema_version:
# raise RuntimeError(
# "Server did not provide schema_version in /info/;"
# f" returned {server_info!r}"

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
# )
# if server_schema_version != schema_version:
# raise SchemaVersionError(
# f"Server requires schema version {server_schema_version};"
# f" client only supports {schema_version}. You may need to"
# " upgrade dandi and/or dandischema."

Check notice

Code scanning / CodeQL

Commented-out code Note

This comment appears to contain commented-out code.
# )

def get_asset(self, asset_id: str) -> BaseRemoteAsset:
"""
Expand Down

0 comments on commit 45360f9

Please sign in to comment.