Fix an 'incomplete format' ValueError