<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def process_exception(self, request, exception):
 """ Add user details. """

        if request.user and hasattr(request.user, 'email'):
            request.META['USER'] = request.user.email