-
Notifications
You must be signed in to change notification settings - Fork 190
fix for #58 #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix for #58 #59
Conversation
It looks like this will need a way to handle both Flask 0.10.x and 0.11.x. |
Sounds good, I'll make those changes shortly. |
@@ -116,3 +123,7 @@ def create_url_adapter(self, request): | |||
self.config['SERVER_NAME'], | |||
script_name=self.config['APPLICATION_ROOT'] or '/', | |||
url_scheme=self.config['PREFERRED_URL_SCHEME']) | |||
|
|||
@staticmethod | |||
def get_minor_version(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this function might make more sense to live in compat.py
and be reworked to something like is_flask_0_10()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, can do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is_flask_10
or is_flask_legacy
. Whatever makes most sense to you.
i see the issue, WIP |
👍 Looks good to me. All set to merge? |
Looks good to me. |
I came across the issue recently for #58 as well, and saw the change was relatively simple.
I added some tests in there as well to check the custom error handler was working okay, looks good on my end.