Merge pull request #94 from hmatrjp/patch-1

update dbus-loader: Remove Loader from safe_load()
This commit is contained in:
uunicorn 2021-08-14 11:41:49 +12:00 committed by GitHub
commit 076d4df17c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,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.safe_load(configfd, Loader=yaml.BaseLoader)
config = yaml.safe_load(configfd)
except FileNotFoundError:
# No configuration file. Create default
config = {'user_to_sid': {}}