]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
script/backport-create-issue: handle ResourceAttrError when getting CF_TAGS
authorIlya Dryomov <idryomov@gmail.com>
Sat, 27 Jul 2024 16:41:14 +0000 (18:41 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 27 Jul 2024 17:09:50 +0000 (19:09 +0200)
commitc5a6226f06c2aa44d1921045426feffdd03b539b
treef59fcc8339abae560cae2b89e0786537320f425c
parent3956c4278abb8f3f97e1c48924bf741e64a68d82
script/backport-create-issue: handle ResourceAttrError when getting CF_TAGS

Older versions of python-redmine may raise ResourceAttrError here
instead of returning None, see [1].  Being prepared for an exception
seems like a good idea regardless given how this field recently got
recreated.

[1] https://github.com/maxtepkeev/python-redmine/commit/0de5689ef5891c1be263c0b3deb8b03966a9c5bd

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/script/backport-create-issue