diff --git a/ckan/controllers/group.py b/ckan/controllers/group.py index 189381d7ec4..ef54064749e 100644 --- a/ckan/controllers/group.py +++ b/ckan/controllers/group.py @@ -505,7 +505,9 @@ def activity(self, id): except NotFound: abort(404, _('Group not found')) except NotAuthorized: - abort(401, _('Unauthorized to read group %s') % id) + abort(401, + _('Unauthorized to read group {group_id}').format( + group_id=id)) # Add the group's activity stream (already rendered to HTML) to the # template context for the group/read.html template to retrieve later.