mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Merge pull request #1983 from SaiCateDoan/maa
Fix: Unable to create new config from existing mod config
This commit is contained in:
@@ -145,18 +145,19 @@ class DeployConfig(ConfigModel):
|
||||
return False
|
||||
else:
|
||||
logger.info(f"[ failure ], error_code: {error_code}")
|
||||
self.show_error(command, error_code)
|
||||
self.show_error(command)
|
||||
raise ExecutionError
|
||||
else:
|
||||
logger.info(f"[ success ]")
|
||||
return True
|
||||
|
||||
def show_error(self, command=None, error_code=None):
|
||||
def show_error(self, command=None):
|
||||
logger.hr("Update failed", 0)
|
||||
self.show_config()
|
||||
logger.info("")
|
||||
logger.info(f"Last command: {command}\nerror_code: {error_code}")
|
||||
logger.info(f"Last command: {command}")
|
||||
logger.info(
|
||||
"Please check your deploy settings in config/deploy.yaml "
|
||||
"and re-open Alas.exe"
|
||||
)
|
||||
logger.info("Take the screenshot of entire window if you need help")
|
||||
|
||||
@@ -969,7 +969,7 @@ class AlasGUI(Frame):
|
||||
put_error(t("Gui.AddAlas.FileExist"), scope=s)
|
||||
return
|
||||
|
||||
r = State.config_updater.read_file(origin)
|
||||
r = load_config(origin).read_file(origin)
|
||||
State.config_updater.write_file(name, r, get_config_mod(origin))
|
||||
self.set_aside()
|
||||
self.active_button("aside", self.alas_name)
|
||||
|
||||
Reference in New Issue
Block a user