Bugfix: get_client_path might get into infinite loop when response code is not 200

This commit is contained in:
Alexander Kukushkin
2015-05-15 11:23:02 +02:00
parent 4e8a0873a7
commit 9487aec842
+2
View File
@@ -45,6 +45,8 @@ class Etcd:
time.sleep(3)
elif ex:
raise ex
else:
break
return response.json(), response.status_code