| Index: recipe_modules/path/api.py
|
| diff --git a/recipe_modules/path/api.py b/recipe_modules/path/api.py
|
| index c32c64658b4a348555c95dc19a019e203261fd84..0d8abf483314b7b879542239262a249d875b3a76 100644
|
| --- a/recipe_modules/path/api.py
|
| +++ b/recipe_modules/path/api.py
|
| @@ -191,12 +191,7 @@ class PathApi(recipe_api.RecipeApi):
|
| self.c.dynamic_paths[pathname] = path
|
|
|
| def __getitem__(self, name):
|
| - if name in self.c.dynamic_paths:
|
| - r = self.c.dynamic_paths[name]
|
| - assert r is not None, ('Tried to get dynamic path %s but it has not been '
|
| - 'set yet.' % name)
|
| - return r
|
| - if name in self.c.base_paths:
|
| + if name in self.c.base_paths or name in self.c.dynamic_paths:
|
| return config_types.Path(config_types.NamedBasePath(name))
|
| raise KeyError('Unknown path: %s' % name) # pragma: no cover
|
|
|
|
|