mirror of
https://github.com/aljazceru/IngestRSS.git
synced 2026-02-23 15:14:23 +01:00
not going to fail people for missing optional vars.
This commit is contained in:
@@ -73,7 +73,12 @@ def check_env() -> None:
|
||||
if value is None or value == "***" or value.strip() == "":
|
||||
missing_optional_vars.append(var)
|
||||
|
||||
if missing_vars or placeholder_vars or missing_optional_vars:
|
||||
if missing_optional_vars:
|
||||
print("\nMissing or improperly set optional variables (based on your storage strategy):")
|
||||
for var in missing_optional_vars:
|
||||
print(f"- {var}")
|
||||
|
||||
if missing_vars or placeholder_vars:
|
||||
print("Error: Some environment variables are not properly set.")
|
||||
|
||||
if missing_vars:
|
||||
@@ -81,12 +86,6 @@ def check_env() -> None:
|
||||
for var in missing_vars:
|
||||
print(f"- {var}")
|
||||
|
||||
if missing_optional_vars:
|
||||
print("\nMissing or improperly set optional variables (based on your storage strategy):")
|
||||
for var in missing_optional_vars:
|
||||
print(f"- {var}")
|
||||
|
||||
|
||||
print(f"😡👊😡Someone didn't read DIRECTIONS 😡👊😡")
|
||||
time.sleep(0.5)
|
||||
print("That's okay.")
|
||||
|
||||
Reference in New Issue
Block a user