fix: ignore extra settings fields (#1398)
* fix: ignore extra settings fields * fix: format
This commit is contained in:
parent
2976168387
commit
331c8e593b
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user