We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7045e6c commit 931561eCopy full SHA for 931561e
cycode/cli/utils/yaml_utils.py
@@ -44,7 +44,7 @@ def read_yaml_file(filename: str) -> dict[Hashable, Any]:
44
45
46
def write_yaml_file(filename: str, content: dict[Hashable, Any]) -> None:
47
- if not os.access(filename, os.W_OK):
+ if not os.access(filename, os.W_OK) and os.path.exists(filename):
48
logger.warning('No write permission for file. Cannot save config, %s', {'filename': filename})
49
return
50
0 commit comments