mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-07-18 00:45:53 +00:00
Use BaseLoader for YAML configuration file
This commit is contained in:
parent
e58df24e7f
commit
34a47c07bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue