From 5a98ffe2636feef19db0150c788ba8bef50f3fb9 Mon Sep 17 00:00:00 2001 From: guohelu <19503896967@163.com> Date: Tue, 7 Jan 2025 18:10:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8D=95=E8=8E=B7?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=B1=BB=E5=9E=8B=20--story=3D121224121?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcloud/apigw/views/copy_template_across_project.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gcloud/apigw/views/copy_template_across_project.py b/gcloud/apigw/views/copy_template_across_project.py index 27b3a97ed..b9b28a9b6 100644 --- a/gcloud/apigw/views/copy_template_across_project.py +++ b/gcloud/apigw/views/copy_template_across_project.py @@ -15,7 +15,6 @@ from blueapps.account.decorators import login_exempt from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST -from pipeline.exceptions import SubprocessExpiredError from gcloud import err_code from gcloud.apigw.decorators import ( @@ -23,7 +22,7 @@ project_inject, return_json_response, ) - +from gcloud.exceptions import FlowExportError from gcloud.apigw.views.utils import logger from gcloud.iam_auth.intercept import iam_intercept from gcloud.tasktmpl3.models import TaskTemplate @@ -70,7 +69,7 @@ def copy_template_across_project(request, project_id): project_id=new_project_id, operator=request.user.username, ) - except SubprocessExpiredError as e: + except FlowExportError as e: logger.exception("Process template export failed: {}".format(e)) return { "result": False,