Option to suppress SSL errors (#1044)
This commit is contained in:
parent
763c5e8356
commit
f262c93912
|
@ -162,6 +162,9 @@ def domains(cert):
|
||||||
entries = ext.value.get_values_for_type(x509.DNSName)
|
entries = ext.value.get_values_for_type(x509.DNSName)
|
||||||
for entry in entries:
|
for entry in entries:
|
||||||
domains.append(entry)
|
domains.append(entry)
|
||||||
|
except x509.ExtensionNotFound:
|
||||||
|
if current_app.config.get("LOG_SSL_SUBJ_ALT_NAME_ERRORS", True):
|
||||||
|
sentry.captureException()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
sentry.captureException()
|
sentry.captureException()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue