Skip to content

Commit

Permalink
fix: env variable SCRAPER_CONFIG_FILE not required in public mode
Browse files Browse the repository at this point in the history
  • Loading branch information
EliotAmn committed Jan 17, 2025
1 parent 221a498 commit a400bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/tools/env_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def check_env_variables():
if os.getenv("SCRAPER_MODE") == "public" and not os.getenv("PUBLIC_SCRAPER_TOKEN"):
log_error("Missing PUBLIC_SCRAPER_TOKEN environment variable")
valid = False
if not os.getenv("SCRAPER_CONFIG_FILE"):
if not os.getenv("SCRAPER_CONFIG_FILE") and os.getenv("SCRAPER_MODE") == "private":
log_error("Missing SCRAPER_CONFIG_FILE environment variable")
valid = False
else:
Expand Down

0 comments on commit a400bc3

Please sign in to comment.