'Only print the exception type and message, without a traceback.
Parameters
etype : exception type
value : exception value'

def show_exception_only(self, etype, evalue):

    ostream = self.ostream
    ostream.flush()
    ostream.write('\n'.join(self.get_exception_only(etype, evalue)))
    ostream.flush()
