From df4495dc061a4289020b78567f2b954dc3968c06 Mon Sep 17 00:00:00 2001 From: Rip&Tear <84775494+theCyberTech@users.noreply.github.com> Date: Fri, 19 Jun 2026 14:46:26 +0800 Subject: [PATCH] Potential fix for pull request finding 'Empty except' Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- lib/crewai-core/src/crewai_core/token_manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/crewai-core/src/crewai_core/token_manager.py b/lib/crewai-core/src/crewai_core/token_manager.py index 5de4f35f9..7b2ad4653 100644 --- a/lib/crewai-core/src/crewai_core/token_manager.py +++ b/lib/crewai-core/src/crewai_core/token_manager.py @@ -100,6 +100,8 @@ class TokenManager: try: storage_path.chmod(0o700) except OSError: + # Best-effort permission hardening only: some platforms/filesystems + # may reject chmod here, and token operations should still proceed. pass return storage_path