def _dock_json_get_plugin_conf_or_fail(self, plugin_type, plugin_name):
        try:
            conf = self.dock_json_get_plugin_conf(plugin_type, plugin_name)
        except __HOLE__:
            raise RuntimeError("Invalid dock json: plugin type '%s' misses" % plugin_type)
        except IndexError:
            raise RuntimeError("no such plugin in dock json: \"%s\"" % plugin_name)
        return conf
dataset/ETHPy150Open projectatomic/osbs-client/osbs/build/manipulate.py/DockJsonManipulator._dock_json_get_plugin_conf_or_fail