Bring up the person's swearing in a respectful and non-judgmental way instead of blowing it up into a big deal. Calmly explain you'd like the person to stop swearing, rather than making it about right and wrong.