  
      def _delete(self, key):
          with suppress(KeyError):
              del self._cache[key]
  
          with suppress(KeyError):
              del self._expire_info[key]
  
      def delete(self, key, version=None):
          key = self.make_key(key, version=version)
          self.validate_key(key)
 
</s> remove         with suppress(KeyError):
 </s> add         try: </s> remove             with suppress(KeyError):
 </s> add             try: </s> remove             with suppress(KeyError):
 </s> add             try:
        except KeyError:
            pass
        try:
  
      def _delete(self, key):
          with suppress(KeyError):
              del self._cache[key]
        except KeyError:
            pass
        try:
        except KeyError:
            pass
        try:
              del self._expire_info[key]
  
      def delete(self, key, version=None):
          key = self.make_key(key, version=version)
          self.validate_key(key)
keep keep keep keep replace replace keep keep keep keep keep
 Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."

This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better. 
django/core/cache/backends/locmem.py