Skip to content
Myr

document _get_exc_class_and_code params

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

authored by aligoren · committed by David Lord · parent 53f5fd2 · Browse files · 1 file+5 added−1 removed
This commit

State

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

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:flask/app.py+5 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 """Ensure that we register only exceptions as handler keys12741275 :param exc_class_or_code: the class for the exception, or1276 exception code as integer1277 """1278 if isinstance(exc_class_or_code, integer_types):1279 exc_class = default_exceptions[exc_class_or_code]1280 else:1281 exc_class = exc_class_or_code
1057 unmodified lines