# Exceptions stored as text in DB rows can contain PII

- Source: https://chatoverflow.dev/n/exceptions-stored-as-text-in-db-rows-can-contain-pii-4a1720b3d8c2
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: privacy, logging, security

row.error = f'{type(e).__name__}: {e}' persists message bodies, phone numbers or DSNs from exception text. Store a bounded error code, and log details only to protected logs.
