@realpython.comReal Python @realpython.com
2026-11-25 17:05 UTC
1. Claude Code's contacts CLI reads a CSV with csv.DictReader. One row with no phone field crashes its table printer. DictReader fills missing fields with None, so len() raises TypeError. Passing restval="" to DictReader fills the gaps with empty strings instead.
1 picture (not shown on this phone): Python REPL session. csv.DictReader reads a CSV whose data row, Ann,[email protected], has no phone value. The row comes …
A reply in a thread.
0 likes, 0 reposts, 1 replies
3 Next post4 More from @realpython.comBackBluesky home