Skip to content
Snippets Groups Projects
Commit 080c50dd authored by gling's avatar gling
Browse files

Update hk.py

parent de2f2d52
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,10 @@ class Claims:
def write_back(self):
raw_claims = [{'path': claim.path, 'owner': claim.owner, 'expires': claim.expires.strftime('%Y-%m-%dT%H:%M:%S')} for claim in self.claims]
with open(self.path, 'w+') as file:
os.chmod(self.path, 0o777)
try:
os.chmod(self.path, 0o777)
except:
pass
json.dump(raw_claims, file)
def claim(self, device: HKSpiBase, fail_soft=False, override=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment