blob: 13de1c6adac5efeb9ada41f1dc7a6eeab86bd738 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
From 8d4a69979cd531f920c9073855fbcb0ca5b81bf1 Mon Sep 17 00:00:00 2001
From: Takeshi HAMASAKI <hmatrjp@users.sourceforge.jp>
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
|