795 @type bool |
795 @type bool |
796 """ |
796 """ |
797 exctype, excval, exctb = excinfo |
797 exctype, excval, exctb = excinfo |
798 |
798 |
799 if ((exctype in [GeneratorExit, StopIteration] and |
799 if ((exctype in [GeneratorExit, StopIteration] and |
800 unhandled == False) or |
800 unhandled is False) or |
801 exctype == SystemExit): |
801 exctype == SystemExit): |
802 # ignore these |
802 # ignore these |
803 return |
803 return |
804 |
804 |
805 if exctype in [SyntaxError, IndentationError]: |
805 if exctype in [SyntaxError, IndentationError]: |