From 19c0a35bce2996774586c9f98bdb9a58bc8d2389 Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Mon, 24 Jun 2024 15:09:19 +0800 Subject: [PATCH] =?UTF-8?q?feat=20fix=20=20=E8=BF=9B=E5=BA=A6id=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E8=BF=94=E5=9B=9E=E6=B6=88=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/api_design.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/api/api_design.py b/app/api/api_design.py index cdbd1f5..690724f 100644 --- a/app/api/api_design.py +++ b/app/api/api_design.py @@ -1,6 +1,5 @@ import json import logging -import time from fastapi import APIRouter, HTTPException @@ -33,7 +32,7 @@ def get_progress(request_data: DesignProgressModel): r = Redis() data = r.read(key=process_id) if data is None: - raise ValueError("The progress must be numbers ") + raise ValueError(f"No progress ID: {process_id}") logging.info(f"get_progress process_id @@@@@@ : {process_id} , progress : {data}") except Exception as e: logger.warning(f"get_progress Run Exception @@@@@@:{e}")