Fixed #40
This commit is contained in:
parent
da34c289a7
commit
2a82a9a663
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
__version__ = "1.2.20"
|
||||
__version__ = "1.2.21"
|
||||
|
|
|
@ -68,7 +68,7 @@ def downloadImage(url, path, overwrite="n"):
|
|||
return downloadImage(urlBase+pictureUrl.replace(str(pictureSize)+"x"+str(pictureSize), '1200x1200'), path, overwrite)
|
||||
logger.error("Image not found: "+url)
|
||||
except (request_exception.ConnectionError, request_exception.ChunkedEncodingError) as e:
|
||||
logger.error("Couldn't download Image, retrying in 5 seconds...: "url+"\n")
|
||||
logger.error("Couldn't download Image, retrying in 5 seconds...: "+url+"\n")
|
||||
sleep(5)
|
||||
return downloadImage(url, path, overwrite)
|
||||
except Exception as e:
|
||||
|
|
Loading…
Reference in New Issue