mirror of
https://github.com/hassio-addons/addon-prometheus.git
synced 2025-05-04 11:11:24 +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:
|
||||
print("Failed to validate")
|
||||
raise
|
||||
if result == False:
|
||||
if not result:
|
||||
raise Exception("validation error")
|
||||
return result
|
||||
|
||||
|
@ -51,7 +51,6 @@ def writeConfig(config, file):
|
|||
r = requests.post(url="http://localhost:9090/-/reload", data={})
|
||||
except:
|
||||
print("Exception")
|
||||
pass
|
||||
|
||||
|
||||
loop = asyncio.get_event_loop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue