                      # If we get here (and the JSON decode works), everything is
                      # good. In any other case, drop back and return None.
                      return json.loads(value, cls=MessageDecoder)
          # Mark the data as used (so it gets removed) since something was wrong
          # with the data.
          self.used = True
          return None
 
</s> remove                 with suppress(ValueError):
 </s> add                 try: </s> remove     with suppress(KeyError):
 </s> add     try:
                except ValueError:
                    pass
                      # If we get here (and the JSON decode works), everything is
                      # good. In any other case, drop back and return None.
                      return json.loads(value, cls=MessageDecoder)
                except ValueError:
                    pass
          # Mark the data as used (so it gets removed) since something was wrong
          # with the data.
          self.used = True
          return None
keep keep add keep keep keep keep
 Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."

This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better. 
django/contrib/messages/storage/cookie.py