1
0
Fork 0
mirror of https://github.com/yavook/kiwi-scp.git synced 2024-12-25 10:33:01 +00:00

fix: get_project on nonexistent project

This commit is contained in:
Jörn-Michael Miehe 2021-11-17 15:58:31 +01:00
parent 7f892bcff2
commit 512ee9ba87

View file

@ -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