mirror of https://github.com/Bunsly/JobSpy
removed env veriable
parent
d47c118541
commit
aa1481539a
|
@ -1,11 +1,6 @@
|
||||||
import os
|
|
||||||
|
|
||||||
from pydantic import Field
|
from pydantic import Field
|
||||||
from pydantic_settings import BaseSettings
|
from pydantic_settings import BaseSettings
|
||||||
|
|
||||||
if not os.environ.get("ENV"):
|
|
||||||
raise ValueError("Invalid environment. Set the 'ENV' variable (e.g., export ENV=dev).")
|
|
||||||
|
|
||||||
|
|
||||||
class Settings(BaseSettings):
|
class Settings(BaseSettings):
|
||||||
telegram_api_token: str = Field(alias="telegram_api_token")
|
telegram_api_token: str = Field(alias="telegram_api_token")
|
||||||
|
|
Loading…
Reference in New Issue