1449 return |
1449 return |
1450 |
1450 |
1451 if ( |
1451 if ( |
1452 self.exceptions |
1452 self.exceptions |
1453 and exceptionType not in self.excIgnoreList |
1453 and exceptionType not in self.excIgnoreList |
1454 and ( |
1454 and (len(self.excList) == 0 or exceptionType in self.excList) |
1455 not len(self.excList) |
|
1456 or (len(self.excList) and exceptionType in self.excList) |
|
1457 ) |
|
1458 ) or (self.unhandledExceptions and exceptionType.startswith("unhandled")): |
1455 ) or (self.unhandledExceptions and exceptionType.startswith("unhandled")): |
1459 res = None |
1456 res = None |
1460 if stackTrace: |
1457 if stackTrace: |
1461 with contextlib.suppress(UnicodeError, OSError): |
1458 with contextlib.suppress(UnicodeError, OSError): |
1462 file, line = stackTrace[0][:2] |
1459 file, line = stackTrace[0][:2] |