---
title: patches
summary: Monkeypatches which wrap the routines generated by componentize-py to make them raise more specific exceptions, not just Err.
url: https://www.fastly.com/documentation/reference/compute/sdks/python/fastly_compute/runtime_patching/patches/
---

**Kind:** Module  
**Package:** fastly-compute 0.1.3  
**Path:** `fastly_compute::runtime_patching::patches`

Monkeypatches which wrap the routines generated by componentize-py to make
them raise more specific exceptions, not just Err.

## Functions

| Name | Summary |
| --- | --- |
| [patch](https://www.fastly.com/documentation/reference/compute/sdks/python/fastly_compute/runtime_patching/patches/fn.patch/) | Apply patches if they haven't already been applied. |

## Constants

### MAPPINGS

**Type:** `Any`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-python/blob/2bffcc6d596a68bcc0b4342404641deff78e68f6/fastly_compute/runtime_patching/patches.py#L46
