From b7e9056b8168b7d8fcc5596d89ec788881619d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Val=C3=AD=C4=8Dek?= Date: Sun, 24 Jul 2022 21:29:11 +0200 Subject: [PATCH] Nicer code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Valíček --- repo_cloner/lib/repo_dir_structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo_cloner/lib/repo_dir_structure.py b/repo_cloner/lib/repo_dir_structure.py index 805795f..552e56b 100644 --- a/repo_cloner/lib/repo_dir_structure.py +++ b/repo_cloner/lib/repo_dir_structure.py @@ -85,7 +85,7 @@ class RepoDirStructure(): @property def config(self) -> ClonerConfig: - self.has_config + assert self.has_config if not self._config: parser = ClonerConfigParser(self.__config_filename) self._config = parser.config