A method is described for controlling operation of a reductant injection system. In one example, a pump of the reductant injection system is operated at a pressure to inject reductant into an exhaust system based on voltage supplied to the pump. The method can allow operation of the reductant injection system during degradation of a pressure sensor that is used to determine reductant flow.