mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-12 05:35:19 +00:00
fix crash on remind run
This commit is contained in:
parent
6cc3966221
commit
8af7b683b6
3 changed files with 7 additions and 7 deletions
|
|
@ -89,7 +89,7 @@ async def async_main():
|
|||
for checker in checker_sets[enabled_set]:
|
||||
checkers.append(checker)
|
||||
|
||||
checker_sets[check_sets.REMIND][0].check_args = checkers
|
||||
checker_sets[check_sets.REMIND][0].check_args = [checkers]
|
||||
|
||||
command_manager = CommandHandlerManager(checkers)
|
||||
await command_manager.attach_handlers(tg_client)
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ from .vulnix import get_vulnix_output
|
|||
IS_TESTING = False
|
||||
|
||||
|
||||
def vulnix_check() -> list[Alert]:
|
||||
async def vulnix_check() -> list[Alert]:
|
||||
alert_list = []
|
||||
try:
|
||||
vulnix_output = get_vulnix_output(IS_TESTING)
|
||||
except Exception as e:
|
||||
send_alert(
|
||||
await send_alert(
|
||||
Alert(
|
||||
alert_type=AlertType.ERROR,
|
||||
message=f"Exception {type(e).__name__} while calling vulnix: {e}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue