latifbaihaki
1a413a8ffe
Improve exception handler in wsgi_app method
...
Replace bare except clause with explicit BaseException handler for
better code clarity and to avoid potential issues with sys.exc_info().
The previous code used a bare except: clause with sys.exc_info()[1]
which is discouraged in Python. This change makes the exception
handling more explicit by catching BaseException directly, which
includes KeyboardInterrupt and SystemExit that should not be
handled by the normal exception handler.
Changes:
- Replace bare except: with except BaseException as e:
- Add explanatory comment about BaseException handling
- Remove noqa: B001 comment as it's no longer needed
All existing tests pass successfully.
2025-12-22 08:27:48 +08:00
David Lord
2579ce9f18
Merge branch 'stable'
2025-11-17 10:05:51 -08:00
David Lord
607d1948b8
split free threading envs
2025-11-17 10:05:39 -08:00
David Lord
218880c7fd
Merge branch 'stable'
2025-11-17 10:03:42 -08:00
David Lord
917000097f
test py3.14
2025-11-17 10:02:53 -08:00
David Lord
96a01e420b
Merge branch 'stable'
2025-11-17 09:45:56 -08:00
David Lord
da6d075dfd
update dev dependencies
2025-11-17 09:43:40 -08:00
David Lord
70d04b5a26
pass context through dispatch methods ( #5818 )
2025-11-17 08:49:53 -08:00
Hynek Schlawack
88a65bb374
Docs typo/markup fixes ( #5829 )
2025-10-14 13:26:26 -07:00
David Lord
6a64969009
pass context through dispatch methods
2025-09-19 17:33:30 -07:00
David Lord
adf363679d
merge app and request context ( #5812 )
2025-09-19 16:45:27 -07:00
David Lord
c2705ffd9c
merge app and request context
2025-09-19 16:43:53 -07:00
David Lord
330123258e
Merge branch 'stable'
2025-08-19 14:09:56 -07:00
David Lord
85793d6c22
release version 3.1.2 ( #5800 )
2025-08-19 14:03:43 -07:00
David Lord
2c1b30d050
release version 3.1.2
2025-08-19 13:57:47 -07:00
David Lord
1292419ddf
Update GitHub Actions workflow for artifact handling ( #5795 )
2025-08-19 13:56:49 -07:00
Grant Birkinbine
4dd52ca9c7
Update GitHub Actions workflow for artifact handling
2025-08-19 13:50:03 -07:00
David Lord
55c6255657
update dev dependencies
2025-08-19 13:41:24 -07:00
David Lord
ed1c9e953e
support call template_filter without parens ( #5736 )
2025-08-19 12:36:00 -07:00
David Lord
edebd37044
rewrite docs, clean up typing for template decorators
2025-08-19 12:33:21 -07:00
kadai0308
daf1510a4b
use template_filter without parens
2025-08-19 12:33:21 -07:00
David Lord
d8259eb119
use Jinja name consistently
2025-08-19 10:43:16 -07:00
David Lord
38b4c1e19b
refactor stream_with_context for async views ( #5799 )
2025-08-19 08:23:51 -07:00
David Lord
9822a03515
refactor stream_with_context for async views
2025-08-19 08:18:55 -07:00
David Lord
49b7e7bc8f
security docs for TRUSTED_HOSTS ( #5798 )
2025-08-18 11:44:57 -07:00
David Lord
b228ca3d87
security docs for TRUSTED_HOSTS
2025-08-18 11:42:48 -07:00
David Lord
ff64079a51
update flask-talisman link
2025-08-18 10:51:12 -07:00
David Lord
1dfd7cd555
use IO[bytes] instead of BinaryIO for wider compatibility ( #5777 )
2025-08-18 10:26:12 -07:00
Tero Vuotila
d44f1c6523
relax type hint for bytes io
2025-08-18 10:22:59 -07:00
David Lord
c56c5ec7c4
Docs: Fix escaping in HTML escaping example ( #5742 )
2025-08-18 10:20:06 -07:00
Badhreesh
0f83958247
demonstrate escaping with query string
...
slash in value would be interpreted as a path separator in the URL
2025-08-18 10:19:18 -07:00
David Lord
7fea7cf156
Update macOS UI reference to “System Settings” ( #5723 )
2025-08-18 10:08:07 -07:00
David Lord
24824ff666
push preserved contexts in correct order ( #5797 )
2025-08-18 09:56:39 -07:00
David Lord
53b8f08218
push preserved contexts in correct order
2025-08-18 09:45:56 -07:00
David Lord
5addaf833b
start version 3.1.2
2025-08-18 09:42:21 -07:00
David Lord
85c5d93cbd
Merge branch 'stable'
2025-06-12 13:48:07 -07:00
David Lord
85cc710464
svg logo
2025-06-12 13:46:49 -07:00
David Lord
284273e3c5
Merge branch 'stable'
2025-06-10 13:18:26 -07:00
David Lord
f17d986948
cleanup svg
2025-06-10 13:18:15 -07:00
David Lord
d6009c0aeb
Merge branch 'stable'
2025-06-09 21:20:46 -07:00
David Lord
2b42a803a2
cleanup svg
2025-06-09 21:20:36 -07:00
David Lord
211cce038a
Merge branch 'stable'
2025-06-09 14:33:44 -07:00
David Lord
a7b67c99f9
svg logo ( #5757 )
2025-06-09 14:33:26 -07:00
David Lord
a758915893
svg logo
2025-06-09 14:31:31 -07:00
David Lord
e974128863
Merge branch 'stable'
2025-06-08 09:54:32 -07:00
David Lord
f04c5e6964
update dev dependencies
2025-06-08 09:52:11 -07:00
David Lord
c07b201ce3
Merge pull request #5754
...
remove slsa provenance
2025-06-08 09:47:45 -07:00
David Lord
adeea00707
remove slsa provenance
...
PyPI trusted publishing has its own attestation support now.
2025-06-08 09:43:05 -07:00
abhiram kamini
7bf3be8dfa
Update server.rst
...
made changes to rename system preferences to system settings according to new mac os name change
2025-06-04 17:24:45 -07:00
David Lord
a42c4d54a3
Fix global CONTRIBUTING link ( #5737 )
2025-05-20 12:30:04 -04:00