mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-07-02 05:38:12 +00:00
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:
@@ -39,8 +39,12 @@ def _ensure_dir_mode(directory: Path) -> None:
|
||||
if directory.resolve() in shared:
|
||||
return
|
||||
directory.chmod(0o700)
|
||||
except OSError:
|
||||
pass
|
||||
except OSError as e:
|
||||
logger.debug(
|
||||
"Could not enforce 0o700 on config directory %s (best-effort): %s",
|
||||
directory,
|
||||
e,
|
||||
)
|
||||
|
||||
|
||||
def _write_secure_json(path: Path, data: dict[str, Any]) -> None:
|
||||
|
||||
Reference in New Issue
Block a user