Fix T56372: Properly show error messages when submission fails

This also introduces a word-wrapping function that takes variable character
widths into account.
This commit is contained in:
2018-08-14 15:05:37 +02:00
parent 9ed933760c
commit 7b88d7704c
4 changed files with 100 additions and 6 deletions

View File

@@ -1,3 +1,6 @@
from .client import CommunicationError
def submit_benchmark(benchmark_data: dict):
"""Submit benchmark data to MyData.
@@ -8,7 +11,7 @@ def submit_benchmark(benchmark_data: dict):
import logging
import os
from .client import CommunicationError, BenchmarkClient
from .client import BenchmarkClient
mydata_url = os.environ.get('MYDATA') or 'https://mydata.blender.org/'
if 'MYDATA' in os.environ: