5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-22 07:00:28 +00:00

sendGraph: Use r.text for printing error

r.text contains the decoded content, while r.content contains the raw
response.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
Johannes Löthberg 2015-11-21 14:49:40 +01:00
parent 3f10aee97f
commit 4460ffa0c4

View File

@ -212,7 +212,7 @@ def send_graph(nodes, edges):
if r.content == 'OK': if r.content == 'OK':
print('Done!') print('Done!')
else: else:
print('Error: {:s}'.format(r.content)) print('Error: {:s}'.format(r.text))
if __name__ == '__main__': if __name__ == '__main__':
main() main()