fix: ignore extra settings fields (#1398)

* fix: ignore extra settings fields

* fix: format
This commit is contained in:
Vlad Stan 2023-01-23 15:25:54 +02:00 committed by GitHub
parent 2976168387
commit 331c8e593b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ from typing import List, Optional
import httpx
from loguru import logger
from pydantic import BaseSettings, Field, validator
from pydantic import BaseSettings, Extra, Field, validator
def list_parse_fallback(v):
@ -33,6 +33,7 @@ class LNbitsSettings(BaseSettings):
env_file_encoding = "utf-8"
case_sensitive = False
json_loads = list_parse_fallback
extra = Extra.ignore
class UsersSettings(LNbitsSettings):