Just use ValueError rather than JSONDecodeError