While not a specific genre name, you could describe such a film as a "classic western comedy" or a "light-hearted western" to emphasize its comedic elements.
Do you have a particular film in mind, or are you looking for a general term? If you have a specific film in mind, I might be able to provide more information.