From e79d85acb5cf429ce46e4238a11aa28993855031 Mon Sep 17 00:00:00 2001 From: Thomas Erlang Date: Mon, 28 Nov 2022 21:34:05 +0100 Subject: [PATCH] Fixed not using BaseSettings --- tbot/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tbot/config.py b/tbot/config.py index c3466f9..0a4c3ce 100644 --- a/tbot/config.py +++ b/tbot/config.py @@ -1,6 +1,6 @@ import os, yaml from typing import List, Optional, Literal -from pydantic import BaseModel, DirectoryPath +from pydantic import BaseModel, BaseSettings, DirectoryPath class ConfigWebModel(BaseModel): port = 8001 @@ -67,7 +67,7 @@ class ConfigRedisModel(BaseModel): pool_min_size = 5 pool_max_size = 20 -class ConfigModel(BaseModel): +class ConfigModel(BaseSettings): debug = False sentry_dsn: Optional[str] web = ConfigWebModel()