  import calendar
  import datetime
  import re
  import time
  from contextlib import suppress
  
  from django.utils.dates import (
      MONTHS, MONTHS_3, MONTHS_ALT, MONTHS_AP, WEEKDAYS, WEEKDAYS_ABBR,
  )
  from django.utils.timezone import get_default_timezone, is_aware, is_naive
 
</s> remove from contextlib import suppress

 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add  </s> remove from contextlib import suppress
 </s> add 
  import calendar
  import datetime
  import re
  import time

  
  from django.utils.dates import (
      MONTHS, MONTHS_3, MONTHS_ALT, MONTHS_AP, WEEKDAYS, WEEKDAYS_ABBR,
  )
  from django.utils.timezone import get_default_timezone, is_aware, is_naive
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/utils/dateformat.py