fix: Correct indentation errors in backend services

- Fix 2 indentation errors in domain_checker.py (lines 200, 205)
- Fix 2 indentation errors in domain_health.py (lines 412, 436, 447)
- Fix NameError in playwright_scraper.py when playwright not installed
- Add fallback type definitions for Browser, BrowserContext, Page
This commit is contained in:
2025-12-11 20:10:35 +01:00
parent dc77b2110a
commit 08fadb547a
3 changed files with 11 additions and 7 deletions

View File

@ -42,6 +42,10 @@ try:
except ImportError:
PLAYWRIGHT_AVAILABLE = False
Stealth = None
# Define dummy types for type hints
Browser = Any
BrowserContext = Any
Page = Any
logger.warning("Playwright not installed. Stealth scraping disabled.")