Fix some minor bug (#62)

* Fix print info

* Delete empty line
This commit is contained in:
Hayden
2024-11-25 15:58:18 +08:00
committed by GitHub
parent 1796b101c5
commit 8b6c6ebdea
2 changed files with 1 additions and 2 deletions

View File

@@ -291,7 +291,7 @@ async def migrate_legacy_information(request):
await services.migrate_legacy_information()
return web.json_response({"success": True})
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)
return web.json_response({"success": False, "error": error_msg})

View File

@@ -290,5 +290,4 @@ async def migrate_legacy_information():
with open(description_path, "w", encoding="utf-8", newline="") as f:
f.write("\n".join(description_parts))
utils.print_debug("Completed migrate model information.")