This commit is contained in:
parent
4edf24c4ce
commit
bc0d335efe
@ -30,7 +30,11 @@ def get_apikey(configfile="/root/.config/syncthing/config.xml"):
|
||||
return None
|
||||
|
||||
|
||||
def get_config(url="http://localhost:8384", verify=False, apikey=get_apikey()):
|
||||
def get_config(url="http://localhost:8384", verify=False, apikey=""):
|
||||
try:
|
||||
apikey=get_apikey()
|
||||
except:
|
||||
return None
|
||||
fullurl = f"{url}/rest/config"
|
||||
req = Request(method="GET",
|
||||
url=fullurl)
|
||||
|
Loading…
Reference in New Issue
Block a user