(self)
| 53 | return cls(type(exc), *exc.args, notes=getattr(exc, "__notes__", [])) |
| 54 | |
| 55 | def to_exception(self): |
| 56 | exc = self._cls(*self._args) |
| 57 | for note in self._notes: |
| 58 | exc.add_note(note) |
| 59 | return exc |
| 60 | |
| 61 | |
| 62 | def _get_running_interactive_framework(): |