Skip to content

% string formatting doesn't allow missing parameters #105

@brettatoms

Description

@brettatoms

Consider using str.format() methods so that if someone wants to override the error.* messages you don't get an error if the %s is missing new error message.

>>> 'some message' % 'x'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: not all arguments converted during string formatting
>>> 'some message'.format('x')
'some message'
>>>```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions