MCPcopy
hub / github.com/pallets/flask / should_ignore_error

Method should_ignore_error

src/flask/sansio/app.py:883–891  ·  view source on GitHub ↗

This is called to figure out if an error should be ignored or not as far as the teardown system is concerned. If this function returns ``True`` then the teardown handlers will not be passed the error. .. versionadded:: 0.10

(self, error: BaseException | None)

Source from the content-addressed store, hash-verified

881 return False
882
883 def should_ignore_error(self, error: BaseException | None) -> bool:
884 """This is called to figure out if an error should be ignored
885 or not as far as the teardown system is concerned. If this
886 function returns ``True`` then the teardown handlers will not be
887 passed the error.
888
889 .. versionadded:: 0.10
890 """
891 return False
892
893 def redirect(self, location: str, code: int = 302) -> BaseResponse:
894 """Create a redirect response object.

Callers 1

wsgi_appMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected