##// END OF EJS Templates
exceptions: fixed .message deprecated in python3
super-admin -
r1112:cf373e01 python3
parent child Browse files
Show More
@@ -653,11 +653,11 b' class HTTPApplication(object):'
653 # Get custom repo-locked status code if present.
653 # Get custom repo-locked status code if present.
654 status_code = request.headers.get('X-RC-Locked-Status-Code')
654 status_code = request.headers.get('X-RC-Locked-Status-Code')
655 return HTTPRepoLocked(
655 return HTTPRepoLocked(
656 title=exception.message, status_code=status_code)
656 title=str(exception), status_code=status_code)
657
657
658 elif _vcs_kind == 'repo_branch_protected':
658 elif _vcs_kind == 'repo_branch_protected':
659 # Get custom repo-branch-protected status code if present.
659 # Get custom repo-branch-protected status code if present.
660 return HTTPRepoBranchProtected(title=exception.message)
660 return HTTPRepoBranchProtected(title=str(exception))
661
661
662 exc_info = request.exc_info
662 exc_info = request.exc_info
663 store_exception(id(exc_info), exc_info)
663 store_exception(id(exc_info), exc_info)
General Comments 0
You need to be logged in to leave comments. Login now