mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 03:06:33 +00:00
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
This commit is contained in:
parent
fdf6946669
commit
38a0d3f5fa
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user