diff --git a/kiwi_scp/instance.py b/kiwi_scp/instance.py index b94a4fb..84f7c22 100644 --- a/kiwi_scp/instance.py +++ b/kiwi_scp/instance.py @@ -132,5 +132,8 @@ class Instance: def get_project(self, project_name: str) -> Optional[Project]: project = Instance.__get_project(self.directory, project_name) + if project is None: + return + project.instance = self return project