We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07bc75b commit f19b22dCopy full SHA for f19b22d
1 file changed
src/blueapi/service/authentication.py
@@ -72,14 +72,16 @@ def can_access_cache(self) -> bool:
72
assert self._token_path
73
try:
74
Path(self._token_path.parent).mkdir(parents=True, exist_ok=True)
75
- os.chmod(self._token_path.parent, 0o777)
+ os.chmod(self._token_path.parent, 0o666)
76
self._token_path.write_text("")
77
except IsADirectoryError:
78
print("Invalid path: a directory path was provided instead of a file path")
79
return False
80
except PermissionError:
81
print(f"Permission denied: Cannot write to {self._token_path.absolute()}")
82
83
+ except Exception as e:
84
+ print(f"It's gone wrong: {e}")
85
return True
86
87
0 commit comments