Verified Commit 078212e6 authored by erdnaxe's avatar erdnaxe 🎇

Fix YAML deprecated warning

parent 605f33f7
......@@ -19,7 +19,7 @@ class Configuration:
def __init__(self, yaml_file):
"""Fetch DavCal from YAML configuration and keyring"""
with open(yaml_file, 'r') as f:
c = yaml.load(f)
c = yaml.load(f, Loader=yaml.FullLoader)
logging.info("Fetching {}".format(c['url']))
password = keyring.get_password('sogo', c['username'])
client = caldav.DAVClient(c['url'], username=c['username'],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment