BUG: dual_coef must be defined inside the try block.