Only print the exception type and message, without a traceback. Parameters ---------- etype : exception type value : exception value
(self, etype, evalue)
| 823 | return ListTB.structured_traceback(self, etype, value) |
| 824 | |
| 825 | def show_exception_only(self, etype, evalue): |
| 826 | """Only print the exception type and message, without a traceback. |
| 827 | |
| 828 | Parameters |
| 829 | ---------- |
| 830 | etype : exception type |
| 831 | value : exception value |
| 832 | """ |
| 833 | # This method needs to use __call__ from *this* class, not the one from |
| 834 | # a subclass whose signature or behavior may be different |
| 835 | ostream = self.ostream |
| 836 | ostream.flush() |
| 837 | ostream.write('\n'.join(self.get_exception_only(etype, evalue))) |
| 838 | ostream.flush() |
| 839 | |
| 840 | def _some_str(self, value): |
| 841 | # Lifted from traceback.py |
nothing calls this directly
no test coverage detected