from social_core.exceptions import AuthException class AuthUserUnregisteredError(AuthException): """Authentication for this account is forbidden""" def __str__(self): return 'This user is not registered'