File tree Expand file tree Collapse file tree 5 files changed +19
-6
lines changed
Expand file tree Collapse file tree 5 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 22
33All notable changes to this project will be documented in this file.
44
5+ ## [ 1.8.1] - 2026-02-XX
6+
7+ ### Fixed
8+ - ** Browser Optional Dependency** : Fixed test collection failure when Playwright is not installed
9+ - ` thordata.browser ` now always exports ` BrowserError ` and ` BrowserConnectionError `
10+ - ` BrowserSession ` is exported only when Playwright is available
11+ - Browser tests avoid importing ` BrowserSession ` when Playwright is missing
12+
513## [ 1.8.0] - 2026-02-XX
614
715### Added
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
55
66[project ]
77name = " thordata-sdk"
8- version = " 1.8.0 "
8+ version = " 1.8.1 "
99description = " The Official Python SDK for Thordata - AI Data Infrastructure & Proxy Network."
1010readme = " README.md"
1111requires-python = " >=3.9"
Original file line number Diff line number Diff line change 55Universal Scraping API (Web Unlocker), and Web Scraper API.
66"""
77
8- __version__ = "1.8.0 "
8+ __version__ = "1.8.1 "
99__author__ = "Thordata Developer Team/Kael Odin"
1010__email__ = "support@thordata.com"
1111
Original file line number Diff line number Diff line change 66
77from __future__ import annotations
88
9+ from .exceptions import BrowserConnectionError , BrowserError
10+
911try :
10- from .exceptions import BrowserConnectionError , BrowserError
1112 from .session import BrowserSession
1213
1314 __all__ = ["BrowserSession" , "BrowserError" , "BrowserConnectionError" ]
1415except ImportError :
15- # Playwright not installed
16- __all__ = []
16+ # Playwright not installed - BrowserSession not available
17+ __all__ = ["BrowserError" , "BrowserConnectionError" ]
Original file line number Diff line number Diff line change 1212 PLAYWRIGHT_AVAILABLE = False
1313
1414from thordata import AsyncThordataClient
15- from thordata .browser import BrowserConnectionError , BrowserError , BrowserSession
15+
16+ if PLAYWRIGHT_AVAILABLE :
17+ from thordata .browser import BrowserConnectionError , BrowserError , BrowserSession
18+ else :
19+ from thordata .browser import BrowserConnectionError , BrowserError
1620
1721
1822@pytest .mark .skipif (not PLAYWRIGHT_AVAILABLE , reason = "Playwright not installed" )
You can’t perform that action at this time.
0 commit comments