Skip to content
Myr

Merge pull request #3253 from aligoren/document-get-exc-class-and-code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Added :param to the _get_exc_class_and_code method docstring

authored by David Lord · committed by GitHub · parents 53f5fd2, 6ec98f0 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Added: param to the _get_exc_class_and_code method docstring

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:flask/app.py+7 added-1 removed
1268 unmodified lines
1269 return decorator12701271 @staticmethod1272 def _get_exc_class_and_code(exc_class_or_code):1273 """Ensure that we register only exceptions as handler keys"""1273 """Get the exception class being handled. For HTTP status codes1274 or ``HTTPException`` subclasses, return both the exception and1275 status code.12761277 :param exc_class_or_code: Any exception class, or an HTTP status1278 code as an integer.1279 """1280 if isinstance(exc_class_or_code, integer_types):1281 exc_class = default_exceptions[exc_class_or_code]1282 else:1283 exc_class = exc_class_or_code
1057 unmodified lines