diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-05 11:28:53 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-05 11:28:53 -0500 |
commit | cc11af4e0aa4fc349bd93f67cb3c650d99b12c12 (patch) | |
tree | 366ebfa2bf0446bc91e3bb4248f2ca79c74d21ec | |
parent | aab3716537c7d3683b03fd63fc657b77b52f8df2 (diff) | |
download | b4-cc11af4e0aa4fc349bd93f67cb3c650d99b12c12.tar.gz |
ez: don't crash on non-existent tag in show_info
Properly catch when a sent tag doesn't exist and move on to the next
one.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/ez.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1724,8 +1724,11 @@ def show_info() -> None: if 'history' in ts: for rn, links in reversed(ts['history'].items()): tagname, revision = get_sent_tagname(mybranch, SENT_TAG_PREFIX, rn) - cover, base_commit, change_id = get_base_changeid_from_tag(tagname) - print('series-%s: %s..%s %s' % (rn, base_commit[:12], tagname, links[0])) + try: + cover, base_commit, change_id = get_base_changeid_from_tag(tagname) + print('series-%s: %s..%s %s' % (rn, base_commit[:12], tagname, links[0])) + except RuntimeError: + logger.debug('No tag matching %s', tagname) def force_revision(forceto: int) -> None: |