Skip to content

Commit

Permalink
Refactor put request to return None on 204 response
Browse files Browse the repository at this point in the history
  • Loading branch information
heisner-tillman committed Oct 17, 2023
1 parent 58f68a0 commit 07090b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bioblend/galaxyclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def make_put_request(self, url: str, payload: Optional[dict] = None, params: Opt
status_code=r.status_code,
)
elif r.status_code == 204:
return {}
return None
# @see self.body for HTTP response body
raise ConnectionError(
f"Unexpected HTTP status code: {r.status_code}",
Expand Down

0 comments on commit 07090b4

Please sign in to comment.