Joshua Carp
348bf52188
Handle empty deque on errorhandler lookup.
...
After registering a custom errorhandler by exception class, raising any
unhandled exception in a view function swallows the error and instead
throws an `IndexError` on trying to look up the appropriate handler.
This patch avoids the uninformative `IndexError` and preserves the
original exception by looping until the deque of classes is empty, not
forever.
10 years ago
Markus Unterwaditzer
0d19fa0a06
Clarify some docs
...
Fix #1476
10 years ago
Markus Unterwaditzer
6e77cd709e
Merge pull request #1463 from moonshadow/fix_docstring
...
fix docstring for _find_errorhandler
10 years ago
Wang Haowei
be45a608e3
fix docstring for _find_errorhandler
10 years ago
Markus Unterwaditzer
1e15e17a66
Merge pull request #1461 from justinwp/patch-1
...
fixed import of werkzeug secure_filename
10 years ago
Justin Poehnelt
17d7353d39
fixed import of werkzeug secure_filename
10 years ago
Jon Banafato
887d382da1
Add X-Forwarded-Proto to proxy setup example
...
The ProxyFix middleware provided by Werkzeug uses this header for
returning accurate values from request.is_secure and request.scheme.
Without adding this header, Flask won't properly detect when it is being
served over HTTPS and will fail to generate proper external links and
cause certain extensions (e.g. Flask-OAuthlib) to function improperly.
Adding this header to the example setup should reduce issues encountered
by developers when following this guide.
10 years ago
Markus Unterwaditzer
3fe68c221a
Merge pull request #1455 from nickjj/docs_contributing
...
Add pip install --editable . to contributing docs
10 years ago
Nick Janetakis
8a96091644
Add pip install --editable . to contributing docs
10 years ago
Markus Unterwaditzer
f0926d7b18
Merge pull request #1453 from ozbek/master
...
Replace 'I' with 'We'
10 years ago
Shuhrat Dehkanov
a1c55a698c
Replace 'I' with 'We'
...
To be consistent with the usage elsewhere in the README
10 years ago
Markus Unterwaditzer
61f12d6a8d
Merge pull request #1450 from Carreau/importlib
...
importlib deprecated in 3.4
10 years ago
Matthias Bussonnier
2de525c720
importlib deprecated in 3.5.
...
Replace the use of importlib by types.ModuleType that seem to be
available since at least 2.6
closes gh-1449
10 years ago
Markus Unterwaditzer
73c833568d
Merge pull request #1448 from fordhurley/custom_converters
...
Mention that custom converters can be defined for url routes
10 years ago
Ford Hurley
d398780852
Mention that custom converters can be defined for url routes
10 years ago
Markus Unterwaditzer
73d89cccec
Errorhandlers were NOT *added* in 1.0
10 years ago
Markus Unterwaditzer
e99fec26ab
Merge pull request #1441 from andyxning/fix_pep8_with_logging
...
Fix pep8 with logging
10 years ago
ning.xie
1b7fad3716
fix pep8 with logging.py
10 years ago
Markus Unterwaditzer
aaebe9fe25
Merge pull request #1431 from untitaker/flask-errorhandling-amend
...
Some cleanup for errorhandling refactor
10 years ago
Markus Unterwaditzer
0bac2ade91
Fix formatting errors
10 years ago
Markus Unterwaditzer
7d506f2408
Recursively traverse MRO of exception
10 years ago
Markus Unterwaditzer
aed464b92b
Merge pull request #1291 from flying-sheep/errorhandler-rework
...
Fixed and intuitivized exception handling
10 years ago
Markus Unterwaditzer
06f2be3ae4
Merge pull request #1429 from flying-sheep/errorhandler-rework-docs
...
Added docs for the error handler rework
10 years ago
Phil Schaf
290372faf1
some details
10 years ago
Phil Schaf
4437eb7ceb
slimmed down error handling intro
10 years ago
Phil Schaf
d4ad47af62
added info about an exception being raised for the old and broken behavior
10 years ago
Phil Schaf
9d3c4bbb8c
Added docs for the error handler rework
10 years ago
Phil Schaf
b31252db55
addressed a few review concerns
10 years ago
Phil Schaf
8c054f04b8
added caching
10 years ago
Phil Schaf
fd8e6b26f9
removed ExceptionHandlerDict
10 years ago
Phil Schaf
0e44cca8e3
Removed 500 not being registerable for blueprints
10 years ago
Phil Schaf
aa4700c276
More verbose message for old broken behavior
10 years ago
Phil Schaf
a6c6cc18f5
Removed unused http code get function
10 years ago
Phil Schaf
7126a22334
Switched to userdict for obsolete Python versions
10 years ago
Phil Schaf
eae48d97b0
Fixed and intuitivized exception handling
10 years ago
ThiefMaster
08ac3aa4e3
Allow custom jinja environments
...
This is useful e.g. when using the new Jinja Environment
attributes added in mitsuhiko/jinja2#404
10 years ago
Keyan Pishdadian
dac45f6c5d
Merge pull request #1418 from alexwlchan/master
...
Fix a few spelling mistakes in the docs
10 years ago
Alex Chan
8570633214
Fix a few spelling mistakes in the docs
10 years ago
Markus Unterwaditzer
b57a076fa3
Merge pull request #1380 from KWinston/master
...
Add line of code required to run examples for Other Testing Tricks section
10 years ago
Brandon Sandrowicz
20f62e828b
Fix Possible Typo
...
Looks like that was meant to be `config_key`. It works by accident because the function is defined in the same scope as the look that passes `config_key` to `apprunner`.
10 years ago
Keyan Pishdadian
b075737245
Merge pull request #1414 from charleswhchan/patch-1
...
Added OpenShift as a free hosting provider alternative
10 years ago
Charles Chan
6c56e4231f
Added OpenShift as a free hosting provider alternative
10 years ago
Keyan Pishdadian
76c518dae7
Merge pull request #1413 from skybert/500-errhandler-note
...
Added note that @errorhandler(500) isn't triggered in debug mode
10 years ago
Torstein Krause Johansen
557a053e3b
Moved noted about HTTP 500 before the code examples
...
- as suggested by @keyan
10 years ago
Torstein Krause Johansen
5dd9335aac
Added note that @errorhandler(500) isn't triggered in debug mode
10 years ago
Markus Unterwaditzer
c259f2bb2b
Add contributing file
10 years ago
Markus Unterwaditzer
1577e1386e
Revert "Don't use threads in this test"
...
This reverts commit 78cd4161f0
.
10 years ago
Keyan Pishdadian
86e8267eb9
Merge pull request #1378 from cbron/master
...
Fix link to SQLalchemy Declarative documentation.
10 years ago
Markus Unterwaditzer
78cd4161f0
Don't use threads in this test
...
I think test failures would've been ignored if there were some.
Fixes #1401
10 years ago
Markus Unterwaditzer
33bad011c3
Merge branch 'mjpieters-appcontext_ignore_handled_exception'
10 years ago