return simple exception dict for use in user_expressions
(self)
| 2854 | #------------------------------------------------------------------------- |
| 2855 | |
| 2856 | def _user_obj_error(self): |
| 2857 | """return simple exception dict |
| 2858 | |
| 2859 | for use in user_expressions |
| 2860 | """ |
| 2861 | |
| 2862 | etype, evalue, tb = self._get_exc_info() |
| 2863 | stb = self.InteractiveTB.get_exception_only(etype, evalue) |
| 2864 | |
| 2865 | exc_info = { |
| 2866 | "status": "error", |
| 2867 | "traceback": stb, |
| 2868 | "ename": etype.__name__, |
| 2869 | "evalue": py3compat.safe_unicode(evalue), |
| 2870 | } |
| 2871 | |
| 2872 | return exc_info |
| 2873 | |
| 2874 | def _format_user_obj(self, obj): |
| 2875 | """format a user object to display dict |
no test coverage detected