Skip to content

Commit

Permalink
fix: correct command response error data formatting
Browse files Browse the repository at this point in the history
Was previously using wrong variable name
  • Loading branch information
nfrasser committed Nov 27, 2023
1 parent 3cc9e02 commit 161adca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cryosparc/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def make_request(
)
if error.readable():
resdata = error.read()
error_reason += f"\nResponse from server: {data}"
error_reason += f"\nResponse from server: {resdata}"
if resdata and error.headers.get_content_type() == "application/json":
resdata = json.loads(resdata)

Expand Down

0 comments on commit 161adca

Please sign in to comment.