A convict (James Cagney) just released from prison becomes sheriff of a western town after being mistaken for a train robber.