From 0be31f03b1333a686af6040470cbeca6042166f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Cedeyn?= Date: Wed, 1 Feb 2023 15:51:55 +0100 Subject: [PATCH] config.py: fix yaml.load() invocation in recent version --- lib/MilkCheck/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MilkCheck/config.py b/lib/MilkCheck/config.py index c7cd1f0..a99b3db 100644 --- a/lib/MilkCheck/config.py +++ b/lib/MilkCheck/config.py @@ -72,7 +72,7 @@ def __init__(self, options): # Read config files if os.access(self.CONFIG_PATH, os.F_OK): - data = yaml.load(open(self.CONFIG_PATH)) + data = yaml.load(open(self.CONFIG_PATH), yaml.FullLoader) # Parse read content self._check_data(data) else: