This isn't how `log.err` works, unfortunately.  You can do this instead:

    log.err(None, "Corrupted XML; aborting step")

where the `None` will cause `log.err` to create a Failure instance based on the current exception.