Fix impotabile setting yaml error

This commit is contained in:
litagin02
2024-01-06 09:48:02 +09:00
parent cba208505e
commit e61ec59580

View File

@@ -263,7 +263,7 @@ args, _ = parser.parse_known_args()
try: try:
config = Config(args.yml_config) config = Config(args.yml_config)
except TypeError: except (TypeError, KeyError):
logger.warning("Old config.yml found. Replace it with default_config.yml.") logger.warning("Old config.yml found. Replace it with default_config.yml.")
shutil.copy(src="default_config.yml", dst="config.yml") shutil.copy(src="default_config.yml", dst="config.yml")
config = Config("config.yml") config = Config("config.yml")