Give failure one spelling

This commit is contained in:
2026-09-28 21:21:35 +02:00
parent 750c417c2d
commit 0fc6afd1e7
10 changed files with 22 additions and 26 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
import json
import os
from loop_claude.outcome import Failure
def make_private(folder):
mask = os.umask(0o077)
@@ -25,5 +27,5 @@ def replace_file(path, data):
except OSError as failure:
if os.path.exists(staged):
os.remove(staged)
return failure
return Failure(failure.strerror)
return None