diff --git a/photobooth/worker/PictureUploadWebdav.py b/photobooth/worker/PictureUploadWebdav.py index 79bc6661..59938879 100644 --- a/photobooth/worker/PictureUploadWebdav.py +++ b/photobooth/worker/PictureUploadWebdav.py @@ -44,6 +44,6 @@ def do(self, picture, filename): logging.info('Uploading picture as %s', url) r = requests.put(url, data=picture.getbuffer(), auth=self._auth) - if r.status_code != requests.codes.created: + if r.status_code in range(200, 300): logging.warn(('PictureUploadWebdav: Upload failed with ' 'status code {}').format(r.status_code))