diff --git a/swh/web/common/exc.py b/swh/web/common/exc.py --- a/swh/web/common/exc.py +++ b/swh/web/common/exc.py @@ -7,7 +7,6 @@ from django.http import HttpResponse from django.shortcuts import render -from django.utils.safestring import mark_safe from swh.web.config import get_config @@ -58,7 +57,7 @@ return render(request, 'error.html', {'error_code': error_code, 'error_message': http_status_code_message[error_code], - 'error_description': mark_safe(error_description)}, + 'error_description': error_description}, status=error_code)