def raise_exception(self, msg, exception_class=Exception):
        """Raise an exception."""
        coords = ''
        obj = self
        while obj is not None:
            try:
                coords = obj.get_itername()
            except AttributeError:
                try:
                    obj = obj.parent
                except AttributeError:
                    break
            else:
                break
        if coords:
            full_msg = (self.get_pathname(), coords, msg) % '%s (%s): %s'
        else:
            full_msg = '%s: %s' % (self.get_pathname(), msg)
        #self._logger.error(msg)
        raise exception_class(full_msg)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/container.py/Container.raise_exception/swapped operands of `%`