# django__django-12700
# Loki Mode Multi-Agent Patch
# Attempts: 1

--- a/django/views/debug.py
+++ b/django/views/debug.py
@@ -83,18 +83,25 @@ class SafeExceptionReporterFilter:
         """
         Cleanse an individual setting key/value of sensitive content. If the
         value is a dictionary, recursively cleanse the keys in that dictionary.
         """
         try:
             if self.hidden_settings.search(key):
                 cleansed = self.cleansed_substitute
             elif isinstance(value, dict):
                 cleansed = {k: self.cleanse_setting(k, v) for k, v in value.items()}
+            elif isinstance(value, list):
+                cleansed = [self.cleanse_setting('', v) for v in value]
+            elif isinstance(value, tuple):
+                cleansed = tuple(self.cleanse_setting('', v) for v in value)
             else:
                 cleansed = value
         except TypeError:
             # If the key isn't regex-able, just return as-is.
             cleansed = value
 
         if callable(googletag_cleansed):
             cleansed = cleansed()