mirror of
https://github.com/hassio-addons/addon-prometheus.git
synced 2025-05-04 19:21:35 +00:00
✏️ Small tweak to Python code
This commit is contained in:
parent
348f8c2ec7
commit
8b8d96be6e
1 changed files with 1 additions and 2 deletions
|
@ -39,7 +39,7 @@ def testConfig(config):
|
||||||
except:
|
except:
|
||||||
print("Failed to validate")
|
print("Failed to validate")
|
||||||
raise
|
raise
|
||||||
if result == False:
|
if not result:
|
||||||
raise Exception("validation error")
|
raise Exception("validation error")
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@ def writeConfig(config, file):
|
||||||
r = requests.post(url="http://localhost:9090/-/reload", data={})
|
r = requests.post(url="http://localhost:9090/-/reload", data={})
|
||||||
except:
|
except:
|
||||||
print("Exception")
|
print("Exception")
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
loop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue