duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #02334
[Merge] lp:~ed.so/duplicity/webdav200fix into lp:duplicity
edso has proposed merging lp:~ed.so/duplicity/webdav200fix into lp:duplicity.
Requested reviews:
duplicity-team (duplicity-team)
For more details, see:
https://code.launchpad.net/~ed.so/duplicity/webdav200fix/+merge/223153
--
https://code.launchpad.net/~ed.so/duplicity/webdav200fix/+merge/223153
Your team duplicity-team is requested to review the proposed merge of lp:~ed.so/duplicity/webdav200fix into lp:duplicity.
=== modified file 'duplicity/backends/webdavbackend.py'
--- duplicity/backends/webdavbackend.py 2014-05-07 21:41:31 +0000
+++ duplicity/backends/webdavbackend.py 2014-06-14 13:45:06 +0000
@@ -391,7 +391,8 @@
try:
source_file = source_path.open("rb")
response = self.request("PUT", url, source_file.read())
- if response.status in [201, 204]:
+ # 200 is returned if a file is overwritten during restarting
+ if response.status in [200, 201, 204]:
response.read()
response.close()
else:
Follow ups