We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2148a commit dd1a6fcCopy full SHA for dd1a6fc
docker/errors.py
@@ -30,15 +30,15 @@ def __str__(self):
30
message = super(APIError, self).__str__()
31
32
if self.is_client_error():
33
- message = '%s Client Error: %s' % (
+ message = '{0} Client Error: {1}'.format(
34
self.response.status_code, self.response.reason)
35
36
elif self.is_server_error():
37
- message = '%s Server Error: %s' % (
+ message = '{0} Server Error: {1}'.format(
38
39
40
if self.explanation:
41
- message = '%s ("%s")' % (message, self.explanation)
+ message = '{0} ("{1}")'.format(message, self.explanation)
42
43
return message
44
0 commit comments