aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-01-05 11:28:53 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2023-01-05 11:28:53 -0500
commitcc11af4e0aa4fc349bd93f67cb3c650d99b12c12 (patch)
tree366ebfa2bf0446bc91e3bb4248f2ca79c74d21ec
parentaab3716537c7d3683b03fd63fc657b77b52f8df2 (diff)
downloadb4-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.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/b4/ez.py b/b4/ez.py
index 749c511..08a1924 100644
--- a/b4/ez.py
+++ b/b4/ez.py
@@ -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: