Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.
Python agentsai-hackingai-penetration-testingai-pentestingai-securityartificial-intelligencebug-bountycode-qualityctf-toolscybersecuritycybersecurity-toolsethical-hackinghackingllm-securityoffensive-securitypenetration-testingpentesting-toolsred-teamingsecuritysecurity-automation
fix: handle chmod failure on Windows gracefully
0xallam1ffeedcf558b
diff --git a/strix/config/config.py b/strix/config/config.pyindex 351b0802..63c2dc44 100644--- a/strix/config/config.py+++ b/strix/config/config.py@@ -1,3 +1,4 @@+import contextlibimport jsonimport osfrom pathlib import Path@@ -77,11 +78,11 @@ class Config:config_path = cls.config_file()with config_path.open("w", encoding="utf-8") as f:json.dump(config, f, indent=2)- config_path.chmod(0o600)except OSError:return False- else:- return True+ with contextlib.suppress(OSError):+ config_path.chmod(0o600) # may fail on Windows+ return True@classmethoddef apply_saved(cls) -> dict[str, str]: