This commit is contained in:
litagin02
2024-01-05 21:26:31 +09:00
parent 193870e192
commit 39667265a4
3 changed files with 28 additions and 6 deletions

View File

@@ -263,7 +263,7 @@ with open(os.path.join("configs", "paths.yml"), "r", encoding="utf-8") as f:
try:
config = Config("config.yml", path_config)
except TypeError:
except (TypeError, KeyError):
logger.warning("Old config.yml found. Replace it with default_config.yml.")
shutil.copy(src="default_config.yml", dst="config.yml")
config = Config("config.yml", path_config)