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:
@ -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.")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user