              return lang_code
  
      lang_code = request.COOKIES.get(settings.LANGUAGE_COOKIE_NAME)
  
      with suppress(LookupError):
          return get_supported_language_variant(lang_code)
  
      accept = request.META.get('HTTP_ACCEPT_LANGUAGE', '')
      for accept_lang, unused in parse_accept_lang_header(accept):
          if accept_lang == '*':
 
</s> remove             with suppress(ImportError):
 </s> add             try: </s> remove         with suppress(KeyboardInterrupt):
 </s> add         try: </s> remove                 with suppress(ValueError):
 </s> add                 try:
    try:
              return lang_code
  
      lang_code = request.COOKIES.get(settings.LANGUAGE_COOKIE_NAME)
  
    try:
          return get_supported_language_variant(lang_code)
  
      accept = request.META.get('HTTP_ACCEPT_LANGUAGE', '')
      for accept_lang, unused in parse_accept_lang_header(accept):
          if accept_lang == '*':
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/translation/trans_real.py