              try:
                  getter = data.getlist
          return getter(name)
  
      def format_value(self, value):
          """Return selected values as a list."""
 
</s> remove             with suppress(AttributeError):
 </s> add             try: </s> remove         with suppress(AttributeError):
 </s> add         try: </s> remove             with suppress(ImportError):
 </s> add             try:
            except AttributeError:
                pass
              try:
                  getter = data.getlist
            except AttributeError:
                pass
          return getter(name)
  
      def format_value(self, value):
          """Return selected values as a list."""
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/forms/widgets.py