##// END OF EJS Templates
Fix suppression of exception chaining with 'from None'...
Thomas Kluyver -
Show More
@@ -985,6 +985,8 b' class VerboseTB(TBTools):'
985 cause = getattr(exception_value, '__cause__', None)
985 cause = getattr(exception_value, '__cause__', None)
986 if cause:
986 if cause:
987 return cause
987 return cause
988 if getattr(exception_value, '__suppress_context__', False):
989 return None
988 return getattr(exception_value, '__context__', None)
990 return getattr(exception_value, '__context__', None)
989
991
990 chained_evalue = get_chained_exception(evalue)
992 chained_evalue = get_chained_exception(evalue)
General Comments 0
You need to be logged in to leave comments. Login now