207
212
val = 's:' + str_or_unicode.encode('base64')
208
213
# This handles UnicodeEncodeError or UnicodeDecodeError
210
215
e.encoding, val, str(e.start), str(e.end), e.reason))
211
216
except errors.TransportNotPossible, e:
212
217
if e.msg == "readonly transport":