Avoiding “Too broad exception clause” warning in PyCharm

前端 未结 0 2068
渐次进展
渐次进展 2021-02-11 16:03

I\'m writing an exception clause at the top level of a script, and I just want it to log whatever errors occur. Annoyingly, PyCharm complains if I just catch Exception

相关标签:
回答
  • 消灭零回复
提交回复
热议问题