I've found llms are very quick to add defaults, fallbacks, rescues–which all makes it very easy for code to look like it is working when it is not or will not. I call this out three different places in my CLAUDE.md trying to adjust for this, and still occasionally get.
Agreed, I’ve found that LLMs favor wrapping entire functions in broad try:catch structures, making it nearly impossible to identify and debug problems. Dangerous if you don’t correct it.