              try:
                  yield import_module('%s.formats' % (location % loc))
  
  
  def get_format_modules(lang=None, reverse=False):
      """Return a list of the format modules found."""
      if lang is None:
 
</s> remove             with suppress(ImportError):
 </s> add             try: </s> remove     with suppress(KeyError):
 </s> add     try: </s> remove         with suppress(AttributeError):
 </s> add         try:
            except ImportError:
                pass
              try:
                  yield import_module('%s.formats' % (location % loc))
            except ImportError:
                pass
  
  
  def get_format_modules(lang=None, reverse=False):
      """Return a list of the format modules found."""
      if lang is None:
keep add 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/utils/formats.py