Skip to content

Commit

Permalink
Generic exception catch
Browse files Browse the repository at this point in the history
  • Loading branch information
armurox committed Nov 14, 2024
1 parent 7c691fb commit 66809dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loggingredactor/redacting_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 66809dd

Please sign in to comment.