Skip to content

Commit

Permalink
Fix AttributeError with docutils >= 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
onjen committed Jan 30, 2023
1 parent 1f28930 commit 6164b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/catkin_pkg/cli/tag_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_forthcoming_label(rst):
if len(section.children) > 0 and isinstance(section.children[0], docutils.nodes.title):
title = section.children[0]
if title and len(title.children) > 0 and isinstance(title.children[0], docutils.nodes.Text):
title_text = title.children[0].rawsource
title_text = title.children[0]
if FORTHCOMING_LABEL.lower() in title_text.lower():
if forthcoming_label:
raise RuntimeError('Found multiple forthcoming sections')
Expand Down

0 comments on commit 6164b4c

Please sign in to comment.