mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 12:50:27 +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':
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user