Skip to content

Commit

Permalink
Make pyre happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jul 17, 2022
1 parent 98f3275 commit 1386e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/antsibull/build_ansible_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def build_single_command() -> int:

def _is_alpha(version: PypiVer) -> bool:
"""Test whether the provided version is an alpha version."""
return version.is_prerelease and version.pre[0] == 'a'
return version.is_prerelease and version.pre is not None and version.pre[0] == 'a'


def prepare_command() -> int:
Expand Down

0 comments on commit 1386e86

Please sign in to comment.