mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 01:10: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:
parent
3f10aee97f
commit
4460ffa0c4
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user