Skip to content

botonomus.errors

The public exception hierarchy. Every SDK error derives from BotonomusError.

botonomus.errors

Public exception hierarchy.

Every error Botonomus raises derives from BotonomusError. Low-level causes (OS errors, protocol errors, driver exceptions) are preserved as __cause__. Messages never contain credentials, cookies, page contents or navigation URLs.

BotonomusError

Bases: Exception

Base class for all Botonomus errors.

ConfigurationError

Bases: BotonomusError, ValueError

A configuration value, argument or profile name is invalid.

BrowserUnavailableError

Bases: BotonomusError

The requested browser executable cannot be found.

ProfileInUseError

Bases: BotonomusError

Another session, in this or another process, owns the profile.

ManagerClosedError

Bases: BotonomusError

The manager is not open for new sessions.

BrowserStartupError

Bases: BotonomusError

The browser process, driver, context or page could not start.

BrowserCleanupError

Bases: BotonomusError

Owned browser resources could not be confirmed stopped.

The affected profile and capacity stay reserved until the backend confirms shutdown, so an uncertain process is never handed to another session.

BinaryNotInstalledError

Bases: BrowserUnavailableError

The requested Botonomus Chromium build is not installed locally.

Run botonomus install (or botonomus.browser.install) first.

BinaryVerificationError

Bases: BotonomusError

A downloaded release manifest or artifact failed authentication or integrity checks.

Raised for a bad manifest signature, a malformed or unsupported manifest, a size or SHA-256 mismatch, or an unsafe archive entry. Nothing from the failed download is installed.

BinaryDownloadError

Bases: BotonomusError

A release manifest, signature or artifact could not be fetched.

The message never contains the request URL, which may carry access tokens; the underlying network error is preserved as __cause__.

PersonaUnsupportedError

Bases: ConfigurationError

A persona was requested for a browser that cannot apply one.

Personas are applied by Botonomus Chromium at the C++ level. Stock Google Chrome has no such switches, and Botonomus never falls back to JavaScript spoofing, which detectors find easily.

GeoLookupError

Bases: BotonomusError

The proxy's exit location could not be determined.

Raised when geoip=True and every lookup provider failed. Provider failures are preserved as __cause__.

GeoMismatchError

Bases: BotonomusError

The browser's time zone cannot be made to agree with the proxy exit.

Stock Google Chrome uses the host time zone. When it differs from the exit's, sites see a contradiction. Use Botonomus Chromium, change the host time zone, or pass allow_timezone_mismatch=True to accept the risk.

HTTPStatusError

HTTPStatusError(response: Any)

Bases: BotonomusError

Response.raise_for_status found a 4xx or 5xx status.

Attributes:

Name Type Description
response

The response that failed.