mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-21 12:23: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]:
|
||||
project = Instance.__get_project(self.directory, project_name)
|
||||
if project is None:
|
||||
return
|
||||
|
||||
project.instance = self
|
||||
return project
|
||||
|
|
Loading…
Reference in a new issue