Merge branch 'stable'

This commit is contained in:
David Lord 2026-01-24 19:05:26 -08:00
commit 5880befcd2
No known key found for this signature in database
GPG key ID: 43368A7AA8CC5926
6 changed files with 19 additions and 8 deletions

View file

@ -358,7 +358,7 @@ class Flask(App):
f"{self.static_url_path}/<path:filename>",
endpoint="static",
host=static_host,
view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950
view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore
)
def get_send_file_max_age(self, filename: str | None) -> int | None:
@ -1568,7 +1568,7 @@ class Flask(App):
except Exception as e:
error = e
response = self.handle_exception(ctx, e)
except: # noqa: B001
except:
error = sys.exc_info()[1]
raise
return response(environ, start_response)