861
871
raise UnicodeDecodeError(encoding, val, start, end, reason)
862
872
elif what == 'UnicodeEncodeError':
863
873
raise UnicodeEncodeError(encoding, val, start, end, reason)
865
877
raise errors.SmartProtocolError('unexpected smart server error: %r' % (resp,))