mirror of
https://gitlab.com/RemixDev/deemix-py.git
synced 2024-12-29 11:06:14 +00:00
urllib3 SSLError check when downloading the track
This commit is contained in:
parent
958f80c1f8
commit
2c807ffc43
|
@ -709,7 +709,7 @@ class DownloadJob:
|
||||||
self.downloadPercentage += chunkProgres
|
self.downloadPercentage += chunkProgres
|
||||||
self.updatePercentage()
|
self.updatePercentage()
|
||||||
|
|
||||||
except SSLError as e:
|
except (SSLError, u3SSLError) as e:
|
||||||
logger.info(f'{itemName} retrying from byte {chunkLength}')
|
logger.info(f'{itemName} retrying from byte {chunkLength}')
|
||||||
return self.streamTrack(stream, track, chunkLength)
|
return self.streamTrack(stream, track, chunkLength)
|
||||||
except (request_exception.ConnectionError, requests.exceptions.ReadTimeout):
|
except (request_exception.ConnectionError, requests.exceptions.ReadTimeout):
|
||||||
|
|
Loading…
Reference in a new issue