mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Merge pull request #517 from cyberboysumanjay/master
Fix YAMLLoadWarning
This commit is contained in:
@@ -58,7 +58,7 @@ def merge(default, config):
|
|||||||
def get_config(config_file):
|
def get_config(config_file):
|
||||||
try:
|
try:
|
||||||
with open(config_file, "r") as ymlfile:
|
with open(config_file, "r") as ymlfile:
|
||||||
cfg = yaml.load(ymlfile)
|
cfg = yaml.safe_load(ymlfile)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
log.info("Writing default configuration to {0}:".format(config_file))
|
log.info("Writing default configuration to {0}:".format(config_file))
|
||||||
with open(config_file, "w") as ymlfile:
|
with open(config_file, "w") as ymlfile:
|
||||||
|
|||||||
Reference in New Issue
Block a user