Skip to content

Commit 064e33a

Browse files
committed
C0116: Missing function or method docstring (missing-function-docstring)
1 parent c7a83fd commit 064e33a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

00-Starter-Seed/server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ def __init__(self, error, status_code):
3333

3434
@APP.errorhandler(AuthError)
3535
def handle_auth_error(ex):
36+
"""
37+
serializes the given AuthError as json and sets the response status code accordingly.
38+
:param ex: an auth error
39+
:return: json serialized ex response
40+
"""
3641
response = jsonify(ex.error)
3742
response.status_code = ex.status_code
3843
return response

0 commit comments

Comments
 (0)