mirror of
https://github.com/b4tman/sync_ics2gcal
synced 2025-11-04 12:38:32 +00:00
safe_load instead of load (yaml)
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user