old_contents: 
  class GetUserInfoOnException(object):
      
      def process_exception(self, request, exception):
          
          if request.user:
              request.META['CURRENT_USER'] = "%s: %s" % \
                  (request.user.pk, request.user.get_profile().nickname)
  
new_contents: 
  class GetUserInfoOnException(object):
      
      def process_exception(self, request, exception):
          
          if request.user.is_authenticated():
              request.META['CURRENT_USER'] = "%s: %s" % \
                  (request.user.pk, request.user.get_profile().nickname)
  
subject: make sure user is authenticated before adding to exception META dict