How to prevent “too broad exception” in this case?

后端 未结 6 1950
情话喂你
情话喂你 2021-02-05 00:00

I have a list of functions that may fail and, if one fails, I don\'t want the script to stop, but to continue with next function.

I am executing it with something like th

6条回答
  •  死守一世寂寞
    2021-02-05 00:51

    You can just put a comment like except Exception as error: # pylint: disable=broad-except that's worked for me actually. I hope it could be work for you.

提交回复
热议问题