Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
provide timeout on final download complete
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Feb 24, 2019
1 parent d68c16d commit 1cbda53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gphotos/GooglePhotosDownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def do_download_complete(self,
"""
for future in futures_list:
media_item = self.pool_future_to_media.get(future)
e = future.exception()
timeout = self.video_timeout if media_item.is_video() else \
self.image_timeout
e = future.exception(timeout=timeout)
if e:
self.files_download_failed += 1
log.error('FAILURE %d downloading %s',
Expand Down

0 comments on commit 1cbda53

Please sign in to comment.