              return x
  
      def walk_items(item_list):
          item_iterator = iter(item_list)
          with suppress(StopIteration):
              item = next(item_iterator)
              while True:
                  try:
                      next_item = next(item_iterator)
                  except StopIteration:
 
</s> remove             with suppress(TemplateDoesNotExist):
 </s> add             try: </s> remove             with suppress(KeyError):
 </s> add             try:
        try:
              return x
  
      def walk_items(item_list):
          item_iterator = iter(item_list)
        try:
              item = next(item_iterator)
              while True:
                  try:
                      next_item = next(item_iterator)
                  except StopIteration:
keep keep keep keep 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/template/defaultfilters.py