Skip to content

Commit 7d8f9a4

Browse files
jeffwidmandpkp
authored andcommitted
Use raw in case string overriden (#1373)
1 parent 41aa034 commit 7d8f9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kafka/protocol/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def _pack(f, value):
1010
return pack(f, value)
1111
except error as e:
1212
raise ValueError("Error encountered when attempting to convert value: "
13-
"{} to struct format: '{}', hit error: {}"
13+
"{!r} to struct format: '{}', hit error: {}"
1414
.format(value, f, e))
1515

1616

@@ -20,7 +20,7 @@ def _unpack(f, data):
2020
return value
2121
except error as e:
2222
raise ValueError("Error encountered when attempting to convert value: "
23-
"{} to struct format: '{}', hit error: {}"
23+
"{!r} to struct format: '{}', hit error: {}"
2424
.format(value, f, e))
2525

2626

0 commit comments

Comments
 (0)