From 34a47c07bd748437c026814833ce1e40a438a48d Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 24 Mar 2020 09:33:42 -0400 Subject: [PATCH] Use BaseLoader for YAML configuration file --- rffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rffmpeg.py b/rffmpeg.py index a547bc5..2502d51 100755 --- a/rffmpeg.py +++ b/rffmpeg.py @@ -62,7 +62,7 @@ config_file = os.environ.get('RFFMPEG_CONFIG', default_config_file) # Parse the configuration with open(config_file, 'r') as cfgfile: try: - o_config = yaml.load(cfgfile) + o_config = yaml.load(cfgfile, Loader=yaml.BaseLoader) except Exception as e: logger('ERROR: Failed to parse configuration file: {}'.format(e)) exit(1)