This repository was archived by the owner on Feb 19, 2020. It is now read-only.
Commit 50bc03a
committed
Fix crash on final message with Python 3
With Python 3, the tool crashes after uploading the coverage results with the following message:
{{{
2015-11-22 16:25:40,601 - INFO - Parsing report file...
2015-11-22 16:25:40,909 - INFO - Uploading report...
2015-11-22 16:25:40,928 - INFO - Starting new HTTPS connection (1): api.codacy.com
Traceback (most recent call last):
File "/home/wendler/venv/benchexec-src/bin/python-codacy-coverage", line 9, in <module>
load_entry_point('codacy-coverage==1.1.0', 'console_scripts', 'python-codacy-coverage')()
File "/home/wendler/venv/benchexec-src/src/codacy/src/codacy/__init__.py", line 6, in main
return reporter.run()
File "/home/wendler/venv/benchexec-src/src/codacy/src/codacy/reporter.py", line 140, in run
upload_report(report, CODACY_PROJECT_TOKEN, args.commit)
File "/home/wendler/venv/benchexec-src/src/codacy/src/codacy/reporter.py", line 110, in upload_report
message = json.loads(r.content)['success']
File "/usr/lib/python3.4/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
}}}1 parent e3a6f06 commit 50bc03a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
0 commit comments