-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename parameters | Merge pull request #3 from johndou-and-friends/main
PR for issue #2
- Loading branch information
Showing
7 changed files
with
39 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# build in | ||
import json | ||
import logging | ||
|
||
# lib | ||
import requests | ||
from flask import request, Flask | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
class NotFlaskApp(Exception): | ||
"""Custom exception class""" | ||
class BaseFlaskCaptchaException(Exception): | ||
"""Base FlaskCaptcha Exception """ | ||
... | ||
|
||
|
||
class CaptchaNameNotExists(Exception): | ||
"""Custom exception class""" | ||
class NotFlaskApp(BaseFlaskCaptchaException): | ||
"""Custom exception class | ||
this exception raise when an invalid or wrong | ||
app passed in __init__ or init_app function | ||
""" | ||
... | ||
|
||
|
||
class CaptchaNameNotExists(BaseFlaskCaptchaException): | ||
"""Custom exception class | ||
this exception raise when render_captcha func get wrong model name | ||
""" | ||
... |
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