.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, int|None suspended_time=None, str message='Access denied') | |
Public Attributes | |
suspended_time = suspended_time | |
message = message | |
Static Public Attributes | |
str | SUSPEND_TIME_SETTING = "search.suspended_times.SearxEngineAccessDenied" |
Protected Member Functions | |
int | _get_default_suspended_time (self) |
The website is blocking the access
Definition at line 58 of file exceptions.py.
searx.exceptions.SearxEngineAccessDeniedException.__init__ | ( | self, | |
int | None | suspended_time = None, | ||
str | message = 'Access denied' ) |
Generic exception to raise when an engine denies access to the results. :param suspended_time: How long the engine is going to be suspended in second. Defaults to None. :type suspended_time: int, None :param message: Internal message. Defaults to ``Access denied`` :type message: str
Reimplemented in searx.exceptions.SearxEngineCaptchaException, and searx.exceptions.SearxEngineTooManyRequestsException.
Definition at line 65 of file exceptions.py.
|
protected |
Definition at line 80 of file exceptions.py.
searx.exceptions.SearxEngineAccessDeniedException.message = message |
Definition at line 78 of file exceptions.py.
|
static |
Definition at line 61 of file exceptions.py.
searx.exceptions.SearxEngineAccessDeniedException.suspended_time = suspended_time |
Definition at line 77 of file exceptions.py.