> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/instruction/catchinstruction/catchinstruction.get_block_instructions.md).

# CatchInstruction.get\_block\_instructions()

Returns all instructions from the catch block

`get_block_instructions() ->` [`APIList`](/glider-ide/api/iterables/apilist.md)`[`[`Instruction`](/glider-ide/api/instruction.md)`]`

## Query Example

```python
from glider import *

def query():
    catch_instructions = Instructions().catch_instructions().exec(1,1)

    return catch_instructions + catch_instructions[0].get_block_instructions()
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FKzdQf3j7DJHKAwZjyzxT%2Fimage.png?alt=media&amp;token=bd31f95d-2dbd-4f89-bc88-0960afe9ef79" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FId5DP2vd0aEjTO875lxi%2Fimage.png?alt=media&amp;token=4ed4dc26-a853-419f-9c69-1167844c49ce" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fpge6yrHnLViH6uT9m5d8%2Fimage.png?alt=media&amp;token=95c67d87-46e2-4d95-a330-48ce48adb37f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FVAOUv3YcWbIUKUkXvLP5%2Fimage.png?alt=media&amp;token=8da3a45f-b573-4399-b212-3f542c4dce72" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FJzk1YhboNZFdHDqjaVGq%2Fimage.png?alt=media&amp;token=c0bdcd2c-b7db-4702-a34c-1c7a8cf83929" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FxWt9V62OvLWmH0v8aarW%2Fimage.png?alt=media&amp;token=00c50249-af82-4ffe-948f-24ae235720a9" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fj2gquvOZ9j3uXWVrzq7j%2Fimage.png?alt=media&amp;token=3439c12d-02de-4a40-8236-87eca7b2bf01" alt=""><figcaption></figcaption></figure>
