diff --git a/config.py b/config.py index 5c4eae1..499b047 100644 --- a/config.py +++ b/config.py @@ -45,10 +45,10 @@ class Config(ComboParser): # Validate thread counts (0 allowed for watchd to disable local testing) if self.watchd.threads < 0: errors.append('watchd.threads must be >= 0') - if self.ppf.threads < 1: - errors.append('ppf.threads must be >= 1') - if self.scraper.threads < 1: - errors.append('scraper.threads must be >= 1') + if self.ppf.threads < 0: + errors.append('ppf.threads must be >= 0') + if self.scraper.enabled and self.scraper.threads < 1: + errors.append('scraper.threads must be >= 1 when scraper is enabled') # Validate max_fail if self.watchd.max_fail < 1: