From 4460ffa0c41c79607974ae9cf4ddf17068b7dc6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= Date: Sat, 21 Nov 2015 14:49:40 +0100 Subject: [PATCH] sendGraph: Use r.text for printing error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit r.text contains the decoded content, while r.content contains the raw response. Signed-off-by: Johannes Löthberg --- scripts/sendGraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sendGraph.py b/scripts/sendGraph.py index b2425fe..f4b9af7 100755 --- a/scripts/sendGraph.py +++ b/scripts/sendGraph.py @@ -212,7 +212,7 @@ def send_graph(nodes, edges): if r.content == 'OK': print('Done!') else: - print('Error: {:s}'.format(r.content)) + print('Error: {:s}'.format(r.text)) if __name__ == '__main__': main()