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