Skip to content

Commit

Permalink
refactor: fix raise value error
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhikharevAl committed Oct 25, 2024
1 parent 2cad43d commit e21be5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ class Data:
PASSWORD: str | None = os.getenv("PARABANK_PASSWORD")

if not USERNAME or not PASSWORD:
msg: str = "Please set PARABANK_USERNAME and PARABANK_PASSWORD in .env file"
msg: str = (
"Environment variables PARABANK_USERNAME and PARABANK_PASSWORD are required. "
"Set them either in .env file or as environment variables"
)
raise ValueError(msg)

0 comments on commit e21be5a

Please sign in to comment.