fix(pipe): fix get from none data in file pipe
This commit is contained in:
@@ -36,6 +36,7 @@ class FileData:
|
|||||||
def get(self, key: str):
|
def get(self, key: str):
|
||||||
if self._data is None and self._filepath.exists():
|
if self._data is None and self._filepath.exists():
|
||||||
self._load_data()
|
self._load_data()
|
||||||
|
if self._data:
|
||||||
return self._data.get(key)
|
return self._data.get(key)
|
||||||
|
|
||||||
def __bool__(self):
|
def __bool__(self):
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "project-manager"
|
name = "project-manager"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
description = ""
|
description = ""
|
||||||
authors = ["shmyga <shmyga.z@gmail.com>"]
|
authors = ["shmyga <shmyga.z@gmail.com>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
Reference in New Issue
Block a user