Merge pull request #239 from hkleen/datasheet_download_ssl_error

catch possible SSLError when downloading datasheets
This commit is contained in:
Salvador E. Tropea 2022-07-26 06:23:19 -03:00 committed by GitHub
commit 3bc4bd51c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -68,6 +68,9 @@ class Download_Datasheets_Options(VariantOptions):
except requests.exceptions.ReadTimeout:
logger.warning(W_FAILDL+'Timeout during download `{}`'.format(ds))
return None
except requests.exceptions.SSLError:
logger.warning(W_FAILDL+'SSL Error during download `{}`'.format(ds))
return None
if r.status_code != 200:
logger.warning(W_FAILDL+'Failed to download `{}`'.format(ds))
return None