Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
revert correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Jul 18, 2024
1 parent 06492d3 commit db46def
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lincbrain/dandiapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def check_schema_version(self, schema_version: str | None = None) -> None:
"""
if schema_version is None:
schema_version = models.get_schema_version()
server_info = self.get("/info/") # 0.6.7
server_info = self.get("/info/")
server_schema_version = server_info.get("schema_version")
if not server_schema_version:
raise RuntimeError(
Expand Down
2 changes: 1 addition & 1 deletion lincbrain/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def upload(
# session gets properly closed. Otherwise, pytest sometimes complains
# under obscure conditions.
client = stack.enter_context(DandiAPIClient.for_dandi_instance(dandi_instance))
client.check_schema_version() # Aaron
client.check_schema_version()
client.dandi_authenticate()

if os.environ.get("DANDI_DEVEL_INSTRUMENT_REQUESTS_SUPERLEN"):
Expand Down

0 comments on commit db46def

Please sign in to comment.