Update to trixie
This commit is contained in:
parent
3686d35108
commit
fbfb04717a
48 changed files with 914 additions and 2216 deletions
|
|
@ -9,6 +9,7 @@ import datetime
|
|||
from typing import Union, Optional
|
||||
from systemd import journal
|
||||
from yaml import load
|
||||
from yaml import CLoader as Loader
|
||||
|
||||
|
||||
main_config_file: str = '/etc/journal-postfix/main.yml'
|
||||
|
|
@ -85,7 +86,7 @@ def get_config() -> Optional[dict]:
|
|||
journal.send(msg, PRIORITY=journal.LOG_CRIT)
|
||||
return None
|
||||
try:
|
||||
config = load(config_raw)
|
||||
config = load(config_raw, Loader=Loader)
|
||||
except Exception as err:
|
||||
msg = f'ERROR: invalid yaml syntax in {filename}: {err}'
|
||||
journal.send(msg, PRIORITY=journal.LOG_CRIT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue