From 23c3a951f6e4523dce091bc6346a6d8fcbb4ccb2 Mon Sep 17 00:00:00 2001 From: Claudius Heine Date: Tue, 11 Jul 2017 15:21:37 +0200 Subject: [PATCH] config: ConfigStatic should only try to fetch missing known repos When a configuration file depends on a include from a repo, which is defined in another included file, a 'KeyError' occures. This fixes this, so that only known repos are tried to be fetched. Signed-off-by: Claudius Heine --- kas/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kas/config.py b/kas/config.py index 9e6d311..88beb44 100644 --- a/kas/config.py +++ b/kas/config.py @@ -344,7 +344,8 @@ class ConfigStatic(Config): repo_dict = self.get_repo_dict() missing_repos = [repo_dict[repo_name] - for repo_name in missing_repo_names] + for repo_name in missing_repo_names + if repo_name in repo_dict] repos_fetch(self, missing_repos)