Skip to content

Commit

Permalink
Dedent
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyChris committed May 8, 2023
1 parent 887937b commit 2abd895
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/towncrier/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ def __main(

if project_version is None:
project_version = config.version
if project_version is None:
if not config.package:
raise UsageError(
"'--version' is required since the config file does "
"not contain 'version' or 'package'."
)
project_version = get_version(
os.path.join(base_directory, config.package_dir), config.package
).strip()
if project_version is None:
if not config.package:
raise UsageError(
"'--version' is required since the config file does "
"not contain 'version' or 'package'."
)
project_version = get_version(
os.path.join(base_directory, config.package_dir), config.package
).strip()

click.echo("Loading template...", err=to_err)
if isinstance(config.template, tuple):
Expand Down

0 comments on commit 2abd895

Please sign in to comment.