From 38a0d3f5fa5a4d605cd3f58e7d8856cf558594b5 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Tue, 9 Nov 2010 17:09:16 -0800 Subject: [PATCH] tahoe_mv.py: when checking success of the DELETE operation, look at the status code from DELETE rather than from the previous PUT. fixes #1255 --- src/allmydata/scripts/tahoe_mv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/scripts/tahoe_mv.py b/src/allmydata/scripts/tahoe_mv.py index 08618cb1..cd54f7a7 100644 --- a/src/allmydata/scripts/tahoe_mv.py +++ b/src/allmydata/scripts/tahoe_mv.py @@ -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 -- 2.45.2