Exception in log module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I'm running duplicity version 0.6.11 with Python 2.6.5 on Ubuntu 10.04
Running
rdiffdir sig pp2 pp2.sig
when pp2.sig already exist, I got the following exception:
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
write_
File "/usr/bin/
check_
File "/usr/bin/
"overwrite." % filename)
TypeError: FatalError() takes at least 2 arguments (1 given)
I fixed the problem changing the line 184 of module log.py
from
def FatalError(s, code, extra=None):
to
def FatalError(s, code=ERROR, extra=None):
From a quick view FatalError is used erroneously also in other parts of the code, so the above code fix them all.
Regards
Sitka
Related branches
Changed in duplicity: | |
milestone: | none → 0.6.12 |
Changed in duplicity: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |