          # Always add these headers.
          #
          # TODO - this isn't actually the correct way to set the vary header,
          # also it's currently sub-obtimal for HTTP caching - need to sort that out. 
          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             return self.emit(response)
        except:
            import traceback
            traceback.print_exc()
 </s> add         return self.emit(response) </s> remove             
        except:
            import traceback
            traceback.print_exc()
 </s> add 
        response.headers['Allow'] = ', '.join(self.allowed_methods)
        response.headers['Vary'] = 'Authenticate, Accept'
          # Always add these headers.
          #
          # TODO - this isn't actually the correct way to set the vary header,
          # also it's currently sub-obtimal for HTTP caching - need to sort that out. 
        response.headers['Allow'] = ', '.join(self.allowed_methods)
        response.headers['Vary'] = 'Authenticate, Accept'
        response.headers['Allow'] = ', '.join(self.allowed_methods)
        response.headers['Vary'] = 'Authenticate, Accept'
        response.headers['Allow'] = ', '.join(self.allowed_methods)
        response.headers['Vary'] = 'Authenticate, Accept'
  
              return self.emit(response)
          except:
              import traceback
              traceback.print_exc()
keep keep keep keep replace replace replace keep keep keep keep keep
 Remove some temporary debugging stuff 
djangorestframework/resource.py