          """
          for template_dir in self.template_dirs:
              try:
                  yield safe_join(template_dir, template_name)
 
</s> remove             # 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):
 </s> add             try: </s> remove             with suppress(ImportError):
 </s> add             try: </s> remove     with suppress(AttributeError):
 </s> add     try:
            except SuspiciousFileOperation:
                # The joined path was located outside of this template_dir
                # (it might be inside another one, so this isn't fatal).
                pass
          """
          for template_dir in self.template_dirs:
              try:
                  yield safe_join(template_dir, template_name)
            except SuspiciousFileOperation:
                # The joined path was located outside of this template_dir
                # (it might be inside another one, so this isn't fatal).
                pass
keep keep keep add
 Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."

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