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>
This commit is contained in:
Rip&Tear
2026-06-19 14:46:26 +08:00
committed by GitHub
parent 714cd11d04
commit df4495dc06

View File

@@ -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