Skip to content

Commit

Permalink
fix(install qgis): invalid log if first value in version_priority is …
Browse files Browse the repository at this point in the history
…not found
  • Loading branch information
jmkerloch committed Sep 5, 2024
1 parent 915f376 commit 3bfa533
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def get_installed_qgis_path(self) -> str | None:
latest_version = self._get_latest_version_from_list(
versions=list(found_versions.keys())
)
latest_qgis = found_versions[latest_version]

# Define used version from version priority
version_priority: list[str] = []
if "version_priority" in self.options:
version_priority = self.options["version_priority"]
Expand All @@ -173,6 +173,9 @@ def get_installed_qgis_path(self) -> str | None:
):
return latest_matching_version

latest_qgis = found_versions[latest_version]
if len(version_priority) != 0:
# No version found in version priority
version_priority_str = ",".join(self.options["version_priority"])
logger.info(
f"QGIS version(s) [{version_priority_str}] not found. Using most recent found version {latest_version} : {latest_qgis}"
Expand Down

0 comments on commit 3bfa533

Please sign in to comment.