loader: fixed error handling
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
8e80acd04c
commit
f47af4d4cc
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ class Loader(object):
|
|||
for name in profile_names:
|
||||
filename = self._profile_locator.get_config(name, processed_files)
|
||||
if filename is None:
|
||||
raise InvalidProfileException("Cannot find profile '%s' in '%s'." % (name, list(reversed(self._load_directories))))
|
||||
raise InvalidProfileException("Cannot find profile '%s' in '%s'." % (name, list(reversed(self._profile_locator._load_directories))))
|
||||
processed_files.append(filename)
|
||||
|
||||
config = self._load_config_data(filename)
|
||||
|
|
|
|||
Loading…
Reference in a new issue