Warning on possible uncaught exception

Hi,

is there a code inspection function in PyCharm that would warn me if I don't surround function that throws exception with try-except statement? Example shown below.

I know that similar functionality exists in InteliJ IDEA so I'm surprised that I haven't found it in PyCharm.

0

Comparing to IntelliJ IDEA, often Java requires to you either catch or throw the exception. There's no such requirement in Python.

However feel free to suggest this as feature request: https://youtrack.jetbrains.com/issues/py

0
Avatar
Permanently deleted user

Ok, thanks. Feature request is suggested.

https://youtrack.jetbrains.com/issue/PY-46723

0

请先登录再写评论。