UnicodeDecodeError when reporting exceptions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
New
|
Undecided
|
Unassigned |
Bug Description
This place was a problem before, see bug 1386373. We used to have the plain old str(e), but that obviously threw the "UnicodeEncodeE
Unfortunately, unicode(e) does not work either for some exceptions. The symptom is the same:
Traceback (innermost last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
sync_archive()
File "/usr/bin/
copy_
File "/usr/bin/
fileobj = globals.
File "/usr/lib64/
self.
File "/usr/lib64/
% (n, e.__class_
File "/usr/lib64/
return ufn(unicode(
UnicodeDecodeE
I'm going to attach a patch that fell out of my py3 work and unicode struggles - but without an actual port to py3.
I have a similar error output: duplicity" , line 1560, in <module> tempdir( main) duplicity" , line 1546, in with_tempdir duplicity" , line 1398, in main backup( action) duplicity" , line 1516, in do_backup backup( col_stats) duplicity" , line 577, in full_backup backend) duplicity" , line 459, in write_multivol python2. 7/dist- packages/ duplicity/ asyncscheduler. py", line 146, in schedule_task run_synchronous ly(fn, params) python2. 7/dist- packages/ duplicity/ asyncscheduler. py", line 172, in __run_synchronously duplicity" , line 458, in <lambda> duplicity" , line 347, in put put(tdp, dest_filename) python2. 7/dist- packages/ duplicity/ backend. py", line 395, in inner_retry _.__name_ _, util.uexc(e))) python2. 7/dist- packages/ duplicity/ util.py" , line 79, in uexc e).encode( 'utf-8' ))
Traceback (innermost last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
do_
File "/usr/bin/
full_
File "/usr/bin/
globals.
File "/usr/bin/
(tdp, dest_filename, vol_num)))
File "/usr/lib/
return self.__
File "/usr/lib/
ret = fn(*params)
File "/usr/bin/
vol_num: put(tdp, dest_filename, vol_num),
File "/usr/bin/
backend.
File "/usr/lib/
% (n, e.__class_
File "/usr/lib/
return ufn(unicode(
Any suggestions would be appreciated.