updated modules
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul 2024-06-28 20:51:52 +02:00
parent 4edf24c4ce
commit bc0d335efe

View File

@ -30,7 +30,11 @@ def get_apikey(configfile="/root/.config/syncthing/config.xml"):
return None 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" fullurl = f"{url}/rest/config"
req = Request(method="GET", req = Request(method="GET",
url=fullurl) url=fullurl)