- +1 minor fix

This commit is contained in:
2023-08-22 15:29:15 +03:00
parent d8ebb909cb
commit bb9c363e0d

View File

@@ -78,7 +78,7 @@ class QualtestBackend:
r = requests.post(url=url, json=report, timeout=utils.NETWORK_TIMEOUT)
utils.log_verbose(f"Upload report finished. Response (probe ID): {r.content}")
if r.status_code != 200:
if r.status_code == 500 and 'Duplicate entry' in r.content().decode():
if r.status_code == 500 and 'Duplicate entry' in r.content.decode():
# Suppose it success
result = (report['id'], True)
else: