mirror of
https://github.com/HKUDS/LightRAG.git
synced 2025-11-11 15:23:49 +00:00
Fix linting
This commit is contained in:
parent
11d7ef4a87
commit
c3934ccccb
@ -1103,7 +1103,8 @@ class PGGraphStorage(BaseGraphStorage):
|
|||||||
try:
|
try:
|
||||||
d[k] = (
|
d[k] = (
|
||||||
json.loads(v)
|
json.loads(v)
|
||||||
if isinstance(v, str) and (v.startswith("{") or v.startswith("["))
|
if isinstance(v, str)
|
||||||
|
and (v.startswith("{") or v.startswith("["))
|
||||||
else v
|
else v
|
||||||
)
|
)
|
||||||
except json.JSONDecodeError:
|
except json.JSONDecodeError:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user