catch possible SSLError when downloading datasheets to prevent KiBot crash.

This commit is contained in:
Henning Kleen 2022-07-26 09:28:46 +02:00
parent b5fc7e8c55
commit 44d3eac6e2
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