Unicode exceptions issue
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Duplicity fails to report correct exception when run in non-ascii locale. For example, if python-boto dependency is not installed and I attempt any operation involving interaction with Amazon S3, it fails with non-descriptive error:
Traceback (most recent call last):
File "/usr/bin/
log.
File "/usr/lib/
return ufn(str(e))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-9: ordinal not in range(128)
This error can be easily fixed by replacing body of the uexc function in the utils module with the following statement:
return ufn(unicode(
I'm using duplicity 0.6.23 (the code is the same in the latest version of duplicity) on Ubuntu 14.04.
Changed in duplicity: | |
status: | New → Incomplete |
status: | Incomplete → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
milestone: | none → 0.7.16 |
Changed in duplicity: | |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
status: | In Progress → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
no longer affects: | ubuntu |
This doesn't work for me, unfortunately. I got the same error.