Throwing an exception during an implicit cast to a boolean as part of a logical operation (or, and) bypasses surrounding try/except statements.
passed c = bool(a)
passed c = a or b
passed c = bool(a)
Traceback (most recent call last):
File "/Users/justinfu/code/test_bool.py", line 15, in <module>
c = a or b
^^^^^^
File "/Users/justinfu/code/test_bool.py", line 3, in __bool__
raise NotImplementedError()
NotImplementedError