]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
tahoe_mv.py: when checking success of the DELETE operation, look at the status code...
authordavid-sarah <david-sarah@jacaranda.org>
Wed, 10 Nov 2010 01:09:16 +0000 (17:09 -0800)
committerdavid-sarah <david-sarah@jacaranda.org>
Wed, 10 Nov 2010 01:09:16 +0000 (17:09 -0800)
src/allmydata/scripts/tahoe_mv.py

index 08618cb1f6d6971ffcdc1dd5fbe5079e96074335..cd54f7a70978c9549ef03fb56fe50cb8520eb80a 100644 (file)
@@ -66,7 +66,7 @@ def mv(options, mode="move"):
     if mode == "move":
         # now remove the original
         resp = do_http("DELETE", from_url)
-        if not re.search(r'^2\d\d$', str(status)):
+        if not re.search(r'^2\d\d$', str(resp.status)):
             print >>stderr, format_http_error("Error deleting original after move", resp)
             return 2