diff --git a/openstack_releases/cmds/list_changes.py b/openstack_releases/cmds/list_changes.py index 0c027c1b40..32f305edd9 100644 --- a/openstack_releases/cmds/list_changes.py +++ b/openstack_releases/cmds/list_changes.py @@ -63,10 +63,13 @@ def git_log(workdir, repo, title, git_range, extra_args=[]): def git_list_existing_branches(workdir, repo): header('All Branches with Version Numbers') for branch in gitutils.get_branches(workdir, repo): - description = subprocess.check_output( - ['git', 'describe', branch], - cwd=os.path.join(workdir, repo), - ).decode('utf-8').strip() + try: + description = subprocess.check_output( + ['git', 'describe', branch], + cwd=os.path.join(workdir, repo), + ).decode('utf-8').strip() + except subprocess.CalledProcessError as exc: + description = exc.output print('{:<30} {}'.format(branch, description))