diff options
-rwxr-xr-x | scripts/send-error-report | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/send-error-report b/scripts/send-error-report index 0d85776340..8eea3cfebb 100755 --- a/scripts/send-error-report +++ b/scripts/send-error-report | |||
@@ -53,9 +53,11 @@ def sendData(json_file, server): | |||
53 | print response.status, response.reason | 53 | print response.status, response.reason |
54 | res = response.read() | 54 | res = response.read() |
55 | if response.status == 200: | 55 | if response.status == 200: |
56 | print res | 56 | print(res) |
57 | else: | 57 | else: |
58 | print("There was a problem submiting your data") | 58 | print("There was a problem submiting your data, response written in %s.response.html" % json_file) |
59 | with open("%s.response.html" % json_file, "w") as f: | ||
60 | f.write(res) | ||
59 | conn.close() | 61 | conn.close() |
60 | except: | 62 | except: |
61 | print("Server connection failed") | 63 | print("Server connection failed") |