fix: missing format arg

This commit is contained in:
Romain Dorgueil
2018-08-11 07:35:39 +02:00
parent ba08931020
commit c5aeab37b7

View File

@ -68,7 +68,9 @@ class Container(dict):
if len(args) == 1:
if len(kwargs):
raise ValueError(
'You can either use {} with one positional argument or with keyword arguments, not both.'
'You can either use {} with one positional argument or with keyword arguments, not both.'.format(
cls.__name__
)
)
if not args[0]:
return super().__new__(cls)