fix(pipe): fix get from none data in file pipe
This commit is contained in:
@@ -36,7 +36,8 @@ class FileData:
|
||||
def get(self, key: str):
|
||||
if self._data is None and self._filepath.exists():
|
||||
self._load_data()
|
||||
return self._data.get(key)
|
||||
if self._data:
|
||||
return self._data.get(key)
|
||||
|
||||
def __bool__(self):
|
||||
return self._filepath.exists()
|
||||
|
||||
Reference in New Issue
Block a user