We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73cd660 + 6f50852 commit 6c45860Copy full SHA for 6c45860
mriqc/interfaces/webapi.py
@@ -276,7 +276,10 @@ def upload_qc_metrics(
276
timeout=15,
277
)
278
except requests.ConnectionError as err:
279
- errmsg = f'QC metrics failed to upload due to connection error shown below:\n{err}'
+ errmsg = f'Error uploading IQMs -- Connection error:\n{err}'
280
+ return Bunch(status_code=1, text=errmsg)
281
+ except requests.exceptions.ReadTimeout as err:
282
+ errmsg = f'Error uploading IQMs -- {endpoint} seems down:\n{err}'
283
return Bunch(status_code=1, text=errmsg)
284
285
return response, data
0 commit comments