Repository navigation
v0.3.0
What's new
Fixes GitHub issue #71: Cloudflare's "Just a moment..." JS challenge page surfacing as a confusing JSONDecodeError from api.lookup.
Behavior change
_getnow raisesCFBlockException(aLoginErrorExceptionsubclass) when the Cloudflare JS challenge page is received, instead of loggingFailed to decode JSON: ...and returningNone. Callers that relied on the old silent-None path should now catchCFBlockExceptionexplicitly.pull_statusesre-raisesCFBlockExceptionbefore its broadexcept Exception, so CF blocks are no longer silently converted to empty result sets.
TLS/fingerprint hygiene
curl_cffibumped from^0.14to^0.15to pick up the chrome146 impersonation profile.IMPERSONATE_TARGETset tochrome146andUSER_AGENTupdated to the matching reduced-UA string (macOS 10_15_7, Chrome 146.0.0.0). Applied at all three call sites in lockstep so the declared UA and TLS/JA3 fingerprint do not drift.
Tooling
- Dev dependencies swapped:
blackandpylintremoved;ruffandtyadded.ruff formatapplied across the package; drive-by lint fixes (__all__in__init__,!= None→is not None,Optional[X]→X | None,raise ... from None/e).
Dependency floors bumped
click, loguru, python-dotenv, pytest moved to current minors. poetry.lock regenerated.