Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 10, 2024
1 parent da83deb commit a4f1740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/towncrier/_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def find_fragments(
"""
get_section_path = FragmentsPath(base_directory, config)
template_filename = (
os.path.basename(config.template) if isinstance(config.template, str)
os.path.basename(config.template)
if isinstance(config.template, str)
else config.template[1]
)

Expand Down

0 comments on commit a4f1740

Please sign in to comment.