Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit82caf4b

Browse files
Lee-Wbearomorphism
authored andcommitted
refactor(changelog): raise NotAllow when file_name not passed instead of using assert
1 parentb91ceb1 commit82caf4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎commitizen/commands/changelog.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ def __call__(self) -> None:
199199
raiseNotAllowed("--incremental cannot be combined with a rev_range")
200200

201201
# Don't continue if no `file_name` specified.
202-
assertself.file_name
202+
ifnotself.file_name:
203+
raiseNotAllowed("filename is required.")
203204

204205
tags=self.tag_rules.get_version_tags(git.get_tags(),warn=True)
205206
changelog_meta=changelog.Metadata()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp