          Ignore files that don't lie inside configured template dirs to avoid
          directory traversal attacks.
          """
          for template_dir in self.template_dirs:
              # SuspiciousFileOperation occurs if the jointed path is located
              # outside of this template_dir (it might be inside another one,
              # so this isn't fatal).
              with suppress(SuspiciousFileOperation):
                  yield safe_join(template_dir, template_name)
 
</s> remove                 with suppress(IndexError):
 </s> add                 try: </s> remove         with suppress(KeyError):
 </s> add         try: </s> remove             with suppress(Exception):
 </s> add             try:
            try:
          Ignore files that don't lie inside configured template dirs to avoid
          directory traversal attacks.
          """
          for template_dir in self.template_dirs:
            try:
            try:
            try:
            try:
                  yield safe_join(template_dir, template_name)
keep keep keep keep replace replace replace replace keep
 Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."

This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better. 
django/template/backends/base.py