Skip to content

Commit 7364802

Browse files
authored
FinishUpload: stop retrying on error (#702)
* FinishUpload: stop retrying on error * changelog
1 parent 8a43c9e commit 7364802

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

webknossos/Changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ For upgrade instructions, please check the respective *Breaking Changes* section
2020

2121
### Fixed
2222

23+
- Fixed a bug where the server’s error message during dataset upload was not displayed to the user. [#702](https://github.com/scalableminds/webknossos-libs/pull/702)
24+
2325

2426
## [0.9.19](https://github.com/scalableminds/webknossos-libs/releases/tag/v0.9.19) - 2022-04-11
2527
[Commits](https://github.com/scalableminds/webknossos-libs/compare/v0.9.18...v0.9.19)

webknossos/webknossos/client/_upload_dataset.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ def upload_dataset(
174174
}
175175
),
176176
)
177-
if response.status_code == 200:
177+
if response.status_code == 200 or response.status_code == 400:
178178
break
179-
else:
180-
assert response.status_code == 200, response
179+
assert response.status_code == 200, response
181180

182181
return f"{context.url}/datasets/{context.organization_id}/{new_dataset_name}/view"

0 commit comments

Comments
 (0)