]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
common_http.py, tahoe_cp.py: Fix an error in calling the superclass constructor in...
authordavid-sarah <david-sarah@jacaranda.org>
Mon, 7 Jun 2010 17:47:14 +0000 (10:47 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Mon, 7 Jun 2010 17:47:14 +0000 (10:47 -0700)
src/allmydata/scripts/common_http.py
src/allmydata/scripts/tahoe_cp.py

index 089b45734b26670ec90eb28b7110e2d5f1a0fe94..1cf76d021a3af53810266656f8118f904774781b 100644 (file)
@@ -83,4 +83,4 @@ def check_http_error(resp, stderr):
 
 class HTTPError(TahoeError):
     def __init__(self, msg, resp):
-        TahoeError.__init__(format_http_error(msg, resp))
+        TahoeError.__init__(self, format_http_error(msg, resp))
index 2a26411992db4eb5d5467354f26092f13ad057dd..59c35445d1be806d0621e5f4dcdd8a9da8e46dad 100644 (file)
@@ -29,7 +29,7 @@ def _put_local_file(pathname, inf):
 
 class MissingSourceError(TahoeError):
     def __init__(self, name):
-        TahoeError.__init__("No such file or directory %s" % quote_output(name))
+        TahoeError.__init__(self, "No such file or directory %s" % quote_output(name))
 
 
 def GET_to_file(url):