@@ -291,7 +291,7 @@ async def migrate_legacy_information(request):
|
|||||||
await services.migrate_legacy_information()
|
await services.migrate_legacy_information()
|
||||||
return web.json_response({"success": True})
|
return web.json_response({"success": True})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
error_msg = f"Download model info failed: {str(e)}"
|
error_msg = f"Migrate model info failed: {str(e)}"
|
||||||
utils.print_error(error_msg)
|
utils.print_error(error_msg)
|
||||||
return web.json_response({"success": False, "error": error_msg})
|
return web.json_response({"success": False, "error": error_msg})
|
||||||
|
|
||||||
|
|||||||
@@ -290,5 +290,4 @@ async def migrate_legacy_information():
|
|||||||
with open(description_path, "w", encoding="utf-8", newline="") as f:
|
with open(description_path, "w", encoding="utf-8", newline="") as f:
|
||||||
f.write("\n".join(description_parts))
|
f.write("\n".join(description_parts))
|
||||||
|
|
||||||
|
|
||||||
utils.print_debug("Completed migrate model information.")
|
utils.print_debug("Completed migrate model information.")
|
||||||
|
|||||||
Reference in New Issue
Block a user