Exception in log module

Bug #704314 reported by Sitka Pete
6
This bug affects 1 person
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/rdiffdir", line 233, in <module>
    main()
  File "/usr/bin/rdiffdir", line 210, in main
    write_sig(file_args[0], get_fileobj(file_args[1], "wb"))
  File "/usr/bin/rdiffdir", line 163, in get_fileobj
    check_does_not_exist(filename)
  File "/usr/bin/rdiffdir", line 121, in check_does_not_exist
    "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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.