          try:
              response.headers['Allow'] = ', '.join(self.allowed_methods)
              response.headers['Vary'] = 'Authenticate, Accept'
  
              return self.emit(response)
          except:
              import traceback
              traceback.print_exc()
  
 
</s> remove             
        except:
            import traceback
            traceback.print_exc()
 </s> add  </s> remove         try:
            response.headers['Allow'] = ', '.join(self.allowed_methods)
            response.headers['Vary'] = 'Authenticate, Accept'
 </s> add         response.headers['Allow'] = ', '.join(self.allowed_methods)
        response.headers['Vary'] = 'Authenticate, Accept'
        return self.emit(response)
          try:
              response.headers['Allow'] = ', '.join(self.allowed_methods)
              response.headers['Vary'] = 'Authenticate, Accept'
  
        return self.emit(response)
        return self.emit(response)
        return self.emit(response)
        return self.emit(response)
  
keep keep keep keep replace replace replace replace keep
 Remove some temporary debugging stuff 
djangorestframework/resource.py