'If an error is present, then log it.'

def CheckError(self):

    if self.__error:
        logger.error('Error    in    %s:    %s', self.getName(), self.__error)
        if self.__traceback:
            logger.debug('%s', ''.join(traceback.format_exception(self.__error.__class__, self.__error, self.__traceback)))
