-
-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
129 additions
and
13,863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# ------------------------------------------------------------------------------- # | ||
|
||
|
||
class Cloudflare_Loop_Protection(Exception): | ||
""" | ||
Raise error for recursive depth protection | ||
""" | ||
|
||
|
||
class Cloudflare_Block(Exception): | ||
""" | ||
Raise error for Cloudflare 1020 block | ||
""" | ||
|
||
|
||
class Cloudflare_Error_IUAM(Exception): | ||
""" | ||
Raise error for problem extracting IUAM paramters from Cloudflare payload | ||
""" | ||
|
||
|
||
class Cloudflare_Error_reCaptcha(Exception): | ||
""" | ||
Raise error for problem extracting reCaptcha paramters from Cloudflare payload | ||
""" | ||
|
||
|
||
class Cloudflare_reCaptcha_Provider(Exception): | ||
""" | ||
Raise error for reCaptcha from Cloudflare, no provider loaded. | ||
""" |
16 changes: 8 additions & 8 deletions
16
cloudscraper/reCaptcha/exceptions.py → ...craper/exceptions/reCaptcha_exceptions.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
# ------------------------------------------------------------------------------- # | ||
|
||
|
||
class reCaptchaServiceUnavailable(Exception): | ||
class reCaptcha_Service_Unavailable(Exception): | ||
""" | ||
Raise error for external services that cannot be reached | ||
""" | ||
|
||
|
||
class reCaptchaErrorFromAPI(Exception): | ||
class reCaptcha_Error_From_API(Exception): | ||
""" | ||
Raise error for error from API response. | ||
""" | ||
|
||
|
||
class reCaptchaAccountError(Exception): | ||
class reCaptcha_Account_Error(Exception): | ||
""" | ||
Raise error for reCaptcha provider account problem. | ||
""" | ||
|
||
|
||
class reCaptchaTimeout(Exception): | ||
class reCaptcha_Timeout(Exception): | ||
""" | ||
Raise error for reCaptcha provider taking too long. | ||
""" | ||
|
||
|
||
class reCaptchaBadParameter(Exception): | ||
class reCaptcha_Bad_Parameter(NotImplementedError): | ||
""" | ||
Raise error for bad or missing Parameter. | ||
""" | ||
|
||
|
||
class reCaptchaBadJobID(Exception): | ||
class reCaptcha_Bad_Job_ID(Exception): | ||
""" | ||
Raise error for invalid job id. | ||
""" | ||
|
||
|
||
class reCaptchaReportError(Exception): | ||
class reCaptcha_Report_Error(Exception): | ||
""" | ||
Raise error for reCaptcha provider unable to report bad solve. | ||
""" | ||
|
||
|
||
class reCaptchaImportError(Exception): | ||
class reCaptcha_Import_Error(Exception): | ||
""" | ||
Raise error for reCaptcha, cannot import a module. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.