document _get_exc_class_and_code params

This commit is contained in:
aligoren 2019-06-07 23:52:42 +03:00 committed by David Lord
parent 53f5fd234b
commit d8d74b0cc8
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
1 changed files with 5 additions and 1 deletions

View File

@ -1270,7 +1270,11 @@ class Flask(_PackageBoundObject):
@staticmethod
def _get_exc_class_and_code(exc_class_or_code):
"""Ensure that we register only exceptions as handler keys"""
"""Ensure that we register only exceptions as handler keys
:param exc_class_or_code: the class for the exception, or
exception code as integer
"""
if isinstance(exc_class_or_code, integer_types):
exc_class = default_exceptions[exc_class_or_code]
else: