Should work. The optional argument should be the `limit` - never the exception itself. I guess 2.x was just nicer in handling this wrong argument.