Skip to main content

Practice ยท 1 of 2

Translate the Cause

Implement parse_count(text) that converts text to int, raising ValidationError('not a count: <text>') when it fails โ€” chained from the original error (raise ... from exc).

Difficulty: intermediate

Back to lesson: Practice: Chaining Drills