Give failure one spelling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user