Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Make _pack_bytes TypeError msg generic
Browse files Browse the repository at this point in the history
Fixes #108
  • Loading branch information
thobbs committed Jan 13, 2012
1 parent 3deb3d9 commit 066c4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycassa/marshal.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def noop(value, slice_start=None):
else: # data_type == 'BytesType' or something unknown
def pack_bytes(v, _=None):
if not isinstance(v, basestring):
raise TypeError("A str or unicode column name was expected, " +
raise TypeError("A str or unicode value was expected, " +
"but %s was received instead (%s)"
% (v.__class__.__name__, str(v)))
return v
Expand Down

0 comments on commit 066c4bc

Please sign in to comment.