summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-11-19 10:14:44 -0500
committermorpheus65535 <[email protected]>2023-11-19 10:14:44 -0500
commitaddae11b6199f7b3a968a6cbdc8bf32147047822 (patch)
treee07af63882bec746bd1f239174c31a36c36c46de
parentbc0b101fd7f93d424949f88e865085f0822bb5ce (diff)
downloadbazarr-addae11b6199f7b3a968a6cbdc8bf32147047822.tar.gz
bazarr-addae11b6199f7b3a968a6cbdc8bf32147047822.zip
no log: replace config.ini.old if it exists instead of failing.
-rw-r--r--bazarr/app/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bazarr/app/config.py b/bazarr/app/config.py
index bf128c6f8..92f0192c3 100644
--- a/bazarr/app/config.py
+++ b/bazarr/app/config.py
@@ -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')