If he doing it daily and having long episodes, I would check in with the vet.
Some Yorkies are more prone to reverse sneezing especially when they are excited or riled up. Covering the nose for a second or two or blowing into the nose often helps them swallow and end the attack.
__________________ Kristin, Max and Teddy |