Is it possible to have a global exception hook?

前端 未结 4 1750
南方客
南方客 2020-12-28 20:57

my code is fairly well covered with exception handling (try..except). Some exceptions are not expected to happen and some exceptions happen fairly often, which is expected a

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 21:27

    You could add a custom handler to madExcept which would then allow you to get a full stack trace, but also carry on.

提交回复
热议问题