Stop at exception in my, not library code

后端 未结 5 2203
故里飘歌
故里飘歌 2021-02-14 22:33

I\'m developing an app using a Python library urllib and it is sometimes rising exceptions due to not being able to access an URL.

However, the exception is

5条回答
  •  爱一瞬间的悲伤
    2021-02-14 23:25

    I think the answer is no.

    pdb stops at the exception and shows you the stack.

    Why would it be useful to hide the real source of the exception?

    If it worked as you seem to be requesting and hides the 6 layers of stack how would you work out what to fix?

    If this is still not on topic please add to your question.

提交回复
热议问题