'Called whenever an exception is raised.
Default behaviour is to print the exception.'

def _HandleException_(self):

    if (not IsCOMServerException()):
        if (self.logger is not None):
            self.logger.exception('pythoncom    server    error')
        else:
            traceback.print_exc()
    raise
