# HG changeset patch # User RhodeCode Admin # Date 2023-06-06 13:21:22 # Node ID cf373e012bc858b9388c7654cd97ac07f15affe2 # Parent a5985c44f705804eb5d7e6d428b470912cbfa6ae exceptions: fixed .message deprecated in python3 diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -653,11 +653,11 @@ class HTTPApplication(object): # Get custom repo-locked status code if present. status_code = request.headers.get('X-RC-Locked-Status-Code') return HTTPRepoLocked( - title=exception.message, status_code=status_code) + title=str(exception), status_code=status_code) elif _vcs_kind == 'repo_branch_protected': # Get custom repo-branch-protected status code if present. - return HTTPRepoBranchProtected(title=exception.message) + return HTTPRepoBranchProtected(title=str(exception)) exc_info = request.exc_info store_exception(id(exc_info), exc_info)