Fix: PyYAML wants a specified loader
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
816fdf2f1a
commit
e95471951a
1 changed files with 4 additions and 1 deletions
|
@ -27,7 +27,10 @@ def check_service_active(service):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
config = yaml.load(open(Path('~/.config/i3-vpn.json').expanduser()))
|
config = yaml.load(
|
||||||
|
open(Path('~/.config/i3-vpn.json').expanduser()),
|
||||||
|
Loader=yaml.SafeLoader,
|
||||||
|
)
|
||||||
results = [config['prefix']]
|
results = [config['prefix']]
|
||||||
|
|
||||||
for check in config['checks']:
|
for check in config['checks']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue