                          item = next(item_iterator)
                          continue
                  yield item, None
                  item = next_item
  
      def list_formatter(item_list, tabs=1):
          indent = '\t' * tabs
          output = []
 
</s> remove         with suppress(StopIteration):
 </s> add         try: </s> remove             with suppress(TemplateDoesNotExist):
 </s> add             try: </s> remove             with suppress(ValueError):
 </s> add             try:
        except StopIteration:
            pass
                          item = next(item_iterator)
                          continue
                  yield item, None
                  item = next_item
        except StopIteration:
            pass
  
      def list_formatter(item_list, tabs=1):
          indent = '\t' * tabs
          output = []
keep 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/template/defaultfilters.py