Skip to content
Snippets Groups Projects
Commit 3fce0af0 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Work around errors from empty responses in calibration_client

parent 0be3ef4c
No related branches found
No related tags found
1 merge request!885Revised CalCat API
......@@ -236,6 +236,9 @@ class CalCatApi(metaclass=ClientWrapper):
)
if not resp["success"]:
if resp["status_code"] == 200:
# calibration_client turns empty response into an error
return []
raise CalCatError(resp)
return resp["data"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment