o
    gfL                     @   s6   d dl mZmZ d dlmZ d dlmZ dddZdS )    )MultipleObjectsReturnedObjectDoesNotExist)UserSocialAuth)AuthExceptionNc                 O   s\   |rdS |  d}|r,z	dtj|diW S  ty"   t|d d ty+   Y dS w dS )zEReturn user entry with same email address as one returned on details.Nemailuser)r   backendzNot unique email address.)getr   get_user_by_emailr   r   r   )detailsr   argskwargsr    r   h/var/www/html/humari/django-venv/lib/python3.10/site-packages/social_auth/backends/pipeline/associate.pyassociate_by_email   s   
r   )N)django.core.exceptionsr   r   social_auth.modelsr   social_auth.exceptionsr   r   r   r   r   r   <module>   s    