Skip to content

Exceptions

Custom exceptions for pykabutan.

PykabutanError

Bases: Exception

Base exception for pykabutan.

ScrapingError

Bases: PykabutanError

Raised when an expected page structure is missing.

This usually means kabutan.jp changed its layout and pykabutan needs an update. The what attribute names the element that failed to parse.

TickerNotFoundError

Bases: PykabutanError

Raised when a stock code doesn't exist on kabutan.jp.