Use dictionary's get

This commit is contained in:
Arnaud de Mouhy
2025-10-13 16:54:47 +02:00
parent d9b6f1a747
commit 760691c535

View File

@@ -137,7 +137,7 @@ def get_qt_installers() -> dict[str, str]:
# macOS arm64 special case, as no official arm64 installer exists
# it should not override the arm64 installer if it appears later
if installers["mac-x64"] and not installers["mac-arm64"]:
if installers.get("mac-x64") and not installers.get("mac-arm64"):
installers["mac-arm64"] = installers["mac-x64"]
return installers