mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-01-21 23:38:58 +00:00
safe_load instead of load (yaml)
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
This commit is contained in:
parent
25190d826f
commit
a39e08db12
@ -39,7 +39,7 @@ def parse_args():
|
||||
|
||||
def load_config():
|
||||
with open('config.yml', 'r', encoding='utf-8') as f:
|
||||
result = yaml.load(f)
|
||||
result = yaml.safe_load(f)
|
||||
return result
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ from gcal_sync import (
|
||||
|
||||
def load_config():
|
||||
with open('config.yml', 'r', encoding='utf-8') as f:
|
||||
result = yaml.load(f)
|
||||
result = yaml.safe_load(f)
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user