Don't raise not found in delete raw template

Change-Id: I0e1a97a0c815530e7dd8cefb01e1db83d51957a9
Task: 37155
This commit is contained in:
ricolin 2019-10-16 21:15:19 +08:00
parent 89ab96176f
commit d38948a221
1 changed files with 5 additions and 1 deletions

View File

@ -142,7 +142,11 @@ def raw_template_update(context, template_id, values):
def raw_template_delete(context, template_id):
raw_template = raw_template_get(context, template_id)
try:
raw_template = raw_template_get(context, template_id)
except exception.NotFound:
# Ignore not found
return
raw_tmpl_files_id = raw_template.files_id
session = context.session
with session.begin(subtransactions=True):