builtins.TypeError: catching classes that do not inherit from BaseException is not allowed

Chris Angelico rosuav at gmail.com
Thu Dec 30 10:23:49 EST 2021


On Fri, Dec 31, 2021 at 2:03 AM hongy... at gmail.com
<hongyi.zhao at gmail.com> wrote:
> See here [1] for the related discussion.
>
> [1] https://discuss.python.org/t/typeerror-catching-classes-that-do-not-inherit-from-baseexception-is-not-allowed/12800

Why did you post in two places at once? Did you need more people to
tell you the same thing as the error message?

ChrisA


More information about the Python-list mailing list