Ë
    8ø»j3  ã                  óH   — d dl mZ d dlmZ d dlmZ erd dlmZ dd„Zd	d„Zy)
é    )Úannotations)ÚTYPE_CHECKING)ÚNotFoundError)ÚApifyApiErrorc                ó(   — t        | t        «      s| ‚y)zÄSuppress 404 Not Found errors and re-raise all other API errors.

    Args:
        exc: The API error to check.

    Raises:
        ApifyApiError: If the error is not a 404 Not Found error.
    N)Ú
isinstancer   )Úexcs    úQ/var/www/html/GAP/venv/lib/python3.12/site-packages/apify_client/_utils/errors.pyÚcatch_not_found_or_throwr      s   € ô �cœ=Ô)Øˆ	ð *ó    c                ó"   — |€| ‚t        | «       y)uu  Like `catch_not_found_or_throw`, but only suppress 404s when the client targets a specific resource by ID.

    For chained clients without a `resource_id` (e.g. `run.dataset()`, `run.log()`), a 404 could mean either the
    parent or the default sub-resource is missing â€” the API body cannot disambiguate â€” so the error propagates
    rather than being swallowed.
    N)r   )r	   Úresource_ids     r
   Ú%catch_not_found_for_resource_or_throwr      s   € ð ÐØˆ	Ü˜SÕ!r   N)r	   r   ÚreturnÚNone)r	   r   r   z
str | Noner   r   )	Ú
__future__r   Útypingr   Úapify_client.errorsr   r   r   r   © r   r
   ú<module>r      s   ðÝ "å  å -áÝ1ó
ô	"r   