diff --git a/loggingredactor/redacting_filter.py b/loggingredactor/redacting_filter.py index 61e7cdd..a99fe6b 100644 --- a/loggingredactor/redacting_filter.py +++ b/loggingredactor/redacting_filter.py @@ -29,7 +29,7 @@ def filter(self, record): def redact(self, content, key=None): try: content_copy = copy.deepcopy(content) - except TypeError: + except Exception: return content if content_copy: if isinstance(content_copy, dict):