Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复捕获异常类型 --story=121224121 #7676

Open
wants to merge 1 commit into
base: feature_template_market_master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions gcloud/apigw/views/copy_template_across_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,14 @@
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 (
mark_request_whether_is_trust,
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
Expand Down Expand Up @@ -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,
Expand Down
Loading