Update api.py
Browse files
api.py
CHANGED
@@ -21,6 +21,7 @@ NEO4J_PASSWORD = os.getenv("NEO4J_PASSWORD")
|
|
21 |
if not NEO4J_URI or not NEO4J_USER or not NEO4J_PASSWORD:
|
22 |
logger.critical("CRITICAL ERROR: NEO4J_URI, NEO4J_USER, and NEO4J_PASSWORD environment variables must be set.")
|
23 |
|
|
|
24 |
# --- Application Lifecycle (Startup/Shutdown) ---
|
25 |
@asynccontextmanager
|
26 |
async def lifespan(app: FastAPI):
|
|
|
21 |
if not NEO4J_URI or not NEO4J_USER or not NEO4J_PASSWORD:
|
22 |
logger.critical("CRITICAL ERROR: NEO4J_URI, NEO4J_USER, and NEO4J_PASSWORD environment variables must be set.")
|
23 |
|
24 |
+
client = None
|
25 |
# --- Application Lifecycle (Startup/Shutdown) ---
|
26 |
@asynccontextmanager
|
27 |
async def lifespan(app: FastAPI):
|