Skip to content

Commit a0091c0

Browse files
bendichterclaude
authored andcommitted
Fix DANDI sandbox upload broken by dandi-cli 0.73.2
dandi-cli 0.73.2 (released Nov 15, 2025) changed API key lookup from the generic DANDI_API_KEY env var to instance-specific env vars (e.g. DANDI_SANDBOX_API_KEY for the sandbox). This broke sandbox uploads because nwb-guide only set DANDI_API_KEY. Now set both DANDI_API_KEY and DANDI_SANDBOX_API_KEY when uploading to the sandbox, maintaining compatibility with both old and new dandi. See: dandi/dandi-cli#1731 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8ce43cf commit a0091c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pyflask/manageNeuroconv/manage_neuroconv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ def upload_project_to_dandi(
13991399
from neuroconv.tools.data_transfers import automatic_dandi_upload
14001400

14011401
# CONVERSION_SAVE_FOLDER_PATH.mkdir(exist_ok=True, parents=True) # Ensure base directory exists
1402+
14021403
# Set API key env var for both old (< 0.73.2) and new dandi versions
14031404
os.environ["DANDI_API_KEY"] = api_key
14041405
if sandbox:

0 commit comments

Comments
 (0)