--- a/eric6/WebBrowser/SafeBrowsing/SafeBrowsingAPIClient.py Thu Apr 08 17:27:12 2021 +0200 +++ b/eric6/WebBrowser/SafeBrowsing/SafeBrowsingAPIClient.py Thu Apr 08 18:27:47 2021 +0200 @@ -561,15 +561,16 @@ """ platform = platform.lower() + if platform not in ("linux", "windows", "macos"): + raise ValueError("Unsupported platform") + platformTypes = ["ANY_PLATFORM", "ALL_PLATFORMS"] if platform == "linux": platformTypes.append("LINUX") elif platform == "windows": platformTypes.append("WINDOWS") - elif platform == "macos": + else: platformTypes.append("OSX") - else: - raise ValueError("Unsupported platform") return platformTypes