1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Adapted uses of versionchanged/versionadded to the new form.

Refs #20104.
This commit is contained in:
Juan Catalano
2013-03-24 22:53:48 -07:00
committed by Claude Paroz
parent 1ddeeb5b8e
commit 78c842a323
48 changed files with 206 additions and 148 deletions

View File

@@ -66,7 +66,7 @@ class VersionDirective(Directive):
msg = """Only one argument accepted for directive '{directive_name}::'.
Comments should be provided as content,
not as an extra argument.""".format(directive_name=self.name)
raise ValueError(msg)
raise self.error(msg)
env = self.state.document.settings.env
ret = []