fix lint errors
This commit is contained in:
parent
c36e081ec8
commit
b846101f77
1 changed files with 2 additions and 3 deletions
|
|
@ -622,9 +622,8 @@ async def initialize_graphiti():
|
|||
raise ValueError('NEO4J_URI, NEO4J_USER, and NEO4J_PASSWORD must be set')
|
||||
|
||||
# Validate FalkorDB configuration
|
||||
if config.database_type == 'falkordb':
|
||||
if not config.falkordb.host or not config.falkordb.port:
|
||||
raise ValueError('FALKORDB_HOST and FALKORDB_PORT must be set for FalkorDB')
|
||||
if config.database_type == 'falkordb' and (not config.falkordb.host or not config.falkordb.port):
|
||||
raise ValueError('FALKORDB_HOST and FALKORDB_PORT must be set for FalkorDB')
|
||||
|
||||
embedder_client = config.embedder.create_client()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue