forked from orbit-oss/flask
Merge branch 'stable'
This commit is contained in:
commit
5880befcd2
6 changed files with 19 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue