Skip to content

Commit 3f3d249

Browse files
authored
Merge pull request ceph#58883 from idryomov/wip-backport-create-resourceattrerror
script/backport-create-issue: handle ResourceAttrError when getting CF_TAGS Reviewed-by: Patrick Donnelly <[email protected]>
2 parents 72b2c44 + c5a6226 commit 3f3d249

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/script/backport-create-issue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,13 @@ def mark_as_processed(r, issue):
319319
logging.debug("custom_fields: %s", list(issue['custom_fields']))
320320

321321
tags_cf = next(filter(lambda x: x['id'] == CF_TAGS, issue['custom_fields']), None)
322-
323322
if tags_cf is None:
324323
tags = ''
325324
else:
326-
tags = tags_cf.value
325+
try:
326+
tags = tags_cf.value
327+
except ResourceAttrError:
328+
tags = None
327329
if tags is None:
328330
tags = ''
329331
else:

0 commit comments

Comments
 (0)