in my experience people are happy you try and learn their language (unless they’re Icelandic, Icelandic people often feel that the language is so small outside influence would destroy it)
One of the more annoying aspects of living in Japan was when people would assume I couldn’t speak Japanese and would desperately try to speak English, which they very clearly hadn’t used in absolute ages, and basically refuse to speak in Japanese no matter what. There were plenty of people that once I spoke Japanese to them you could see the relief and just went with it. Generally people were happy that I spoke Japanese.