Skip to content

Commit

Permalink
[DATALAD RUNCMD] TEMP: revert one block
Browse files Browse the repository at this point in the history
=== Do not change lines below ===
{
 "chain": [],
 "cmd": "git diff origin/master... -- dandi/files/bases.py | patch -R -p1 ",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Oct 21, 2023
1 parent e51981d commit 9c79985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dandi/files/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ def iter_upload(
},
)
except requests.HTTPError as e:
if e.response and e.response.status_code == 409:
if e.response.status_code == 409:
lgr.debug("%s: Blob already exists on server", asset_path)
blob_id = e.response.headers["Location"]
else:
Expand Down

0 comments on commit 9c79985

Please sign in to comment.