Permalink
Browse files

Make _pack_bytes TypeError msg generic

Fixes #108
  • Loading branch information...
1 parent 3deb3d9 commit 066c4bcf806a018f677e0c2d96a3fd3cfae54226 @thobbs thobbs committed Jan 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pycassa/marshal.py
View
@@ -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

0 comments on commit 066c4bc

Please sign in to comment.