optional
optional
#
cg.optional() — collect a block into an OptionalProcedure.
The block runs but may fail or be skipped without failing the surrounding procedure. A path cached inside the block stays assigned and readable for the rest of the procedure.
OptionalContext
#
Bases: ProcedureContext
Reduce a block's roots to a sequence wrapped in an OptionalProcedure.
Source code in capturegraph-lib/capturegraph/procedures/procedure/authoring/contexts/optional.py
optional()
#
Run the with block as an optional step; its failure never propagates.