Skip to content

Commit

Permalink
Update guess install method check (#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
audgirka committed Jun 13, 2023
1 parent 03a5a71 commit ac528c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def guess_install_method() -> str:
package_name = "ansible-lint"

try:
if distribution(package_name).read_text("INSTALLER").strip() != "pip": # type: ignore[union-attr]
if (distribution(package_name).read_text("INSTALLER") or "").strip() != "pip":
return ""
except PackageNotFoundError as exc:
logging.debug(exc)
Expand Down

0 comments on commit ac528c0

Please sign in to comment.