[oe-commits] [openembedded-core] 08/08: send-error-report: encode data to bytes
git at git.openembedded.org
git at git.openembedded.org
Fri Jun 3 12:14:24 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit b3f4de76d1b32c5079b0b857655cc2baad088519
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Fri Jun 3 12:04:22 2016 +0300
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/send-error-report | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/send-error-report b/scripts/send-error-report
index ff23552..15b5e84 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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list