Use BaseLoader for YAML configuration file

This commit is contained in:
Joshua M. Boniface 2020-03-24 09:33:42 -04:00 committed by GitHub
parent e58df24e7f
commit 34a47c07bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)