mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 15:31:38 +01:00
change: don't fail on missing config
This commit is contained in:
@@ -297,7 +297,8 @@ def create_app():
|
|||||||
config |= json.load(f)
|
config |= json.load(f)
|
||||||
|
|
||||||
if not config:
|
if not config:
|
||||||
raise ValueError("No valid configuration found - need at least one service")
|
print("No valid configuration found - need at least one service")
|
||||||
|
return
|
||||||
|
|
||||||
for key in config:
|
for key in config:
|
||||||
timeout = timeparse.timeparse(config[key]["timeout"])
|
timeout = timeparse.timeparse(config[key]["timeout"])
|
||||||
|
|||||||
Reference in New Issue
Block a user