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

后端 未结 6 1954
情话喂你
情话喂你 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:41

    You can avoid the error if you then re-raise the Exception. This way you are able to do damage control and not endanger loosing track of its occurance.

提交回复
热议问题