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