id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 31942 SafeExceptionReporterFilter does not recurse into dictionaries with non-string keys Jeremy Lainé Jeremy Lainé "SafeExceptionReporterFilter has provisions for recursively cleaning settings by descending into lists / tuples / dictionaries - which is great! However, recursing on dictionaries only works if the keys of the dictionary are strings. For instance it will fail to sanitize the following example: `SOME_SETTING = {1: {'login': 'cooper', 'password': 'secret'}}` The reason for this is that `cleanse_setting` starts by trying to apply a the `hidden_settings` regex to the key before attempting to recurse into the value: https://github.com/django/django/blob/0b0658111cba538b91072b9a133fd5545f3f46d1/django/views/debug.py#L94 " Cleanup/optimization closed Error reporting 3.1 Normal fixed Ready for checkin 1 0 0 0 0 0