o
    -g                     @   s   d Z dd ZdS )z)Error classes for PostgreSQL error codes
c                 C   s   ddl m} ||  S )zjLookup an error code and return its exception class.

    Raise `!KeyError` if the code is not found.
        )sqlstate_errors)psycopg2._psycopgr   )coder    r   P/var/www/html/django-vendor/venv/lib/python3.10/site-packages/psycopg2/errors.pylookup    s   r   N)__doc__r   r   r   r   r   <module>   s    