diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-06-03 12:04:22 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-06-03 13:12:45 +0100 |
commit | b3f4de76d1b32c5079b0b857655cc2baad088519 (patch) | |
tree | c9abc055b987ac55a003e0ab3df176a48021bf4d /scripts | |
parent | cfae302c4996c49a8754497ea9f13f8331d6975d (diff) | |
download | openembedded-core-b3f4de76d1b32c5079b0b857655cc2baad088519.tar.gz openembedded-core-b3f4de76d1b32c5079b0b857655cc2baad088519.tar.bz2 openembedded-core-b3f4de76d1b32c5079b0b857655cc2baad088519.zip |
send-error-report: encode data to bytes
Encoded data before sending it through http as urllib expecting bytes.
Fixed TypeError: POST data should be bytes or an iterable of bytes. It
cannot be of type str.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/send-error-report | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/send-error-report b/scripts/send-error-report index ff23552b66..15b5e84911 100755 --- a/scripts/send-error-report +++ b/scripts/send-error-report @@ -125,7 +125,7 @@ def prepare_data(args): with open(args.error_file, 'r') as json_fp: data = json_fp.read() - return data + return data.encode('utf-8') def send_data(data, args): |