Skip to content

Commit

Permalink
Accepting more upload codes
Browse files Browse the repository at this point in the history
  • Loading branch information
reuterbal committed Jun 21, 2019
1 parent 9462dcf commit 5c749c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion photobooth/worker/PictureUploadWebdav.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 5c749c8

Please sign in to comment.