Allow translating argument error messages
This commit is contained in:
parent
e8acc865a3
commit
7220a34baf
|
@ -746,7 +746,7 @@ class ArgumentError(Exception):
|
|||
if self.argument_name is None:
|
||||
format = '%(message)s'
|
||||
else:
|
||||
format = 'argument %(argument_name)s: %(message)s'
|
||||
format = _('argument %(argument_name)s: %(message)s')
|
||||
return format % dict(message=self.message,
|
||||
argument_name=self.argument_name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue