
    QЦi                         % S r SSKJrJr  SSKJrJrJrJrJ	r	J
r
Jr  \S \
S \S \S \S \	S	 \S
 \S 0r\\\   \\/\4   4   \S'   S\S\\   4S jrg)zCLI error handling utilities.    )CallableOptional)BucketNotFoundErrorGatedRepoErrorHfHubHTTPErrorLocalTokenNotFoundErrorRemoteEntryNotFoundErrorRepositoryNotFoundErrorRevisionNotFoundErrorc                     g)NzrBucket not found. Check the bucket id (namespace/name). If the bucket is private, make sure you are authenticated. es    Z/var/www/html/ai-image-ml/venv/lib/python3.13/site-packages/huggingface_hub/cli/_errors.py<lambda>r      s    |    c                     g)Nz~Repository not found. Check the `repo_id` and `repo_type` parameters. If the repo is private, make sure you are authenticated.r   r   s    r   r   r   !   s     	Ir   c                     g)Nz3Revision not found. Check the `revision` parameter.r   r   s    r   r   r   $   s    %Zr   c                     g)Nz1Access denied. This repository requires approval.r   r   s    r   r   r   %   s    Qr   c                     g)Nz)Not logged in. Run 'hf auth login' first.r   r   s    r   r   r   &   s    'Rr   c                     g)NzFile not found in repository.r   r   s    r   r   r   '   s    (Gr   c                     [        U 5      $ N)strr   s    r   r   r   (   s    c!fr   c                     SU  3$ )NzInvalid value. r   r   s    r   r   r   )   s    OA3/r   CLI_ERROR_MAPPINGSr   returnc                 r    [         R                  5        H  u  p[        X5      (       d  M  U" U 5      s  $    g r   )r   items
isinstance)r   exc_type	formatters      r   format_known_exceptionr#   -   s2    1779a""Q<  : r   N)__doc__typingr   r   huggingface_hub.errorsr   r   r   r   r	   r
   r   
ValueErrorr   dicttype	Exceptionr   __annotations__r#   r   r   r   <module>r,      s    $ %       ZQRG$/I Di(I;3C*DDE  i HSM r   