Skip to content

Commit

Permalink
client: better print errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Apr 12, 2021
1 parent 5e402ad commit a398950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,8 @@ def _run_futures(self, futures, total=None):
if "warning" in resp:
print(resp["warning"])
elif status != 502:
warnings.warn(resp["error"])
print(resp["error"][:200] + "...")
elif status not in {503, 504}:
warnings.warn(response.content.decode("utf-8"))
print("ERROR", response.content.decode("utf-8"))

return responses

0 comments on commit a398950

Please sign in to comment.