urllib3 SSLError check when downloading the track

This commit is contained in:
RemixDev 2020-11-30 16:45:53 +01:00
parent 958f80c1f8
commit 2c807ffc43
No known key found for this signature in database
GPG Key ID: B33962B465BDB51C
1 changed files with 1 additions and 1 deletions

View File

@ -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):