From e341d1bf0b47ded75887ecfa98f266a40d887314 Mon Sep 17 00:00:00 2001 From: Aric Coady Date: Wed, 24 Jan 2024 17:31:55 -0800 Subject: [PATCH] Starlette >=0.36 compatibility. --- CHANGELOG.md | 3 +++ graphique/service.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29e0987..4e13ffa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## Unreleased ### Changed * Pyarrow >=15 required + +### Fixed * Strawberry >=0.212 compatible +* Starlette >=0.36 compatible ## [1.4](https://pypi.org/project/graphique/1.4/) - 2023-11-05 ### Changed diff --git a/graphique/service.py b/graphique/service.py index 5dedbce..3ac9f0b 100644 --- a/graphique/service.py +++ b/graphique/service.py @@ -14,7 +14,7 @@ from graphique.inputs import Expression from graphique import GraphQL -config = Config('.env') +config = Config('.env' if Path('.env').is_file() else None) PARQUET_PATH = Path(config('PARQUET_PATH')).resolve() FEDERATED = config('FEDERATED', default='') DEBUG = config('DEBUG', cast=bool, default=False)