pyrit.exceptions.pyrit_json_retry#
- pyrit_json_retry(func: Callable) Callable[source]#
A decorator to apply retry logic to a function.
Retries the function if it raises a JSON error. Logs retry attempts at the INFO level and stops after a maximum number of attempts.
- Parameters:
func (Callable) – The function to be decorated.
- Returns:
The decorated function with retry logic applied.
- Return type:
Callable