From dc733a9b45d13ea893dcf1579fd5e2dbfe3cff6d 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 comparing response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Missed this use of r.content in previous commit. 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 1c43f2f..763bb36 100755 --- a/scripts/sendGraph.py +++ b/scripts/sendGraph.py @@ -208,7 +208,7 @@ def send_graph(nodes, edges): payload = {'data': json_graph, 'mail': your_mail, 'version': 2} r = requests.post(url, data=payload) - if r.content == 'OK': + if r.text == 'OK': print('Done!') else: print('Error: {:s}'.format(r.text))