From 8b6c6ebdead41ec7b1b9117118d20365d8d3925d Mon Sep 17 00:00:00 2001 From: Hayden <48267247+hayden-fr@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:58:18 +0800 Subject: [PATCH] Fix some minor bug (#62) * Fix print info * Delete empty line --- __init__.py | 2 +- py/services.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index c5a0770..0023b2e 100644 --- a/__init__.py +++ b/__init__.py @@ -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}) diff --git a/py/services.py b/py/services.py index 184f7c5..cfc667f 100644 --- a/py/services.py +++ b/py/services.py @@ -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.")