fix crash on remind run

This commit is contained in:
Alex Tau 2025-06-07 00:38:31 +03:00
parent 6cc3966221
commit 8af7b683b6
3 changed files with 7 additions and 7 deletions

View file

@ -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)

View file

@ -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}",