Skip to content

Commit

Permalink
no log: replace config.ini.old if it exists instead of failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus65535 committed Nov 19, 2023
1 parent bc0b101 commit addae11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazarr/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def convert_ini_to_yaml(config_file):
output_dict[section].update({item[0]: item[1]})
with open(os.path.join(os.path.dirname(config_file), 'config.yaml'), 'w') as file:
yaml.dump(output_dict, file)
os.rename(config_file, f'{config_file}.old')
os.replace(config_file, f'{config_file}.old')


config_yaml_file = os.path.join(args.config_dir, 'config', 'config.yaml')
Expand Down

0 comments on commit addae11

Please sign in to comment.