Fix format instead of variable in gettext
This commit is contained in:
@@ -155,7 +155,7 @@ def do_edit_package(user: User, package: Package, was_new: bool, was_web: bool,
|
||||
break
|
||||
|
||||
if tag.is_protected and tag not in old_tags and not user.rank.atLeast(UserRank.EDITOR):
|
||||
raise LogicError(400, lazy_gettext("Unable to add protected tag {tag.title} to package"))
|
||||
raise LogicError(400, lazy_gettext("Unable to add protected tag %(title)s to package", title=tag.title))
|
||||
|
||||
package.tags.append(tag)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user