From 8d4a69979cd531f920c9073855fbcb0ca5b81bf1 Mon Sep 17 00:00:00 2001 From: Takeshi HAMASAKI Date: Sat, 14 Aug 2021 08:36:06 +0900 Subject: [PATCH] update dbus-loader: Remove Loader from safe_load() As I commented on the commit c0bf88e, https://github.com/uunicorn/python-validity/commit/c0bf88ea050c446dc12d81a0de8d30a4f81cc797 python3-validity.service does not start, at least on Debian buster, since safe_load() does not have arg Loader on its prototype. Removing Loader here, config = yaml.safe_load(configfd) makes it back to normal starting. --- dbus_service/dbus-service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus_service/dbus-service b/dbus_service/dbus-service index 7a1a1bc..8655547 100755 --- a/dbus_service/dbus-service +++ b/dbus_service/dbus-service @@ -242,7 +242,7 @@ def main(): # Load and perform basic validation of config file. try: with (args.configpath / 'dbus-service.yaml').open(mode='rt') as configfd: - config = yaml.load(configfd) + config = yaml.safe_load(configfd) except FileNotFoundError: # No configuration file. Create default config = {'user_to_sid': {}} -- 2.35.1