Skip to content

Commit

Permalink
Use raw in case string overriden (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwidman authored and dpkp committed Feb 8, 2018
1 parent 41aa034 commit 7d8f9a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kafka/protocol/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def _pack(f, value):
return pack(f, value)
except error as e:
raise ValueError("Error encountered when attempting to convert value: "
"{} to struct format: '{}', hit error: {}"
"{!r} to struct format: '{}', hit error: {}"
.format(value, f, e))


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


Expand Down

0 comments on commit 7d8f9a4

Please sign in to comment.