diff --git a/src/ptpython/printer.py b/src/ptpython/printer.py index a3578de..b589143 100644 --- a/src/ptpython/printer.py +++ b/src/ptpython/printer.py @@ -327,7 +327,7 @@ def _format_exception_output( "", "\nThe above exception was the direct cause of the following exception:\n\n", ) - elif e.__context__: + elif e.__context__ and not e.__suppress_context__: yield from self._format_exception_output(e.__context__, highlight=highlight) yield ( "",