mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-22 04:43:00 +00:00
fix: get_project on nonexistent project
This commit is contained in:
parent
7f892bcff2
commit
512ee9ba87
1 changed files with 3 additions and 0 deletions
|
@ -132,5 +132,8 @@ class Instance:
|
||||||
|
|
||||||
def get_project(self, project_name: str) -> Optional[Project]:
|
def get_project(self, project_name: str) -> Optional[Project]:
|
||||||
project = Instance.__get_project(self.directory, project_name)
|
project = Instance.__get_project(self.directory, project_name)
|
||||||
|
if project is None:
|
||||||
|
return
|
||||||
|
|
||||||
project.instance = self
|
project.instance = self
|
||||||
return project
|
return project
|
||||||
|
|
Loading…
Reference in a new issue