Closed pcattori closed 4 years ago
Utility function that raises an exception when an operation has failed.
tc.operation.check(op_success) # noop tc.operation.check(op_fail) # raises exception
Have to implement a check function in every repo in userland.
check
def check(op: tc.Operation): if not tc.operation.succeeded(op): raise RuntimeError("Operation failed.") return op
See #449
🙋 feature request
Utility function that raises an exception when an operation has failed.
🤔 Expected Behavior
😯 Current Behavior
Have to implement a
check
function in every repo in userland.💁 Possible Solution
💻 Examples
See #449