1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Adds warnings if the cacert.pem file cannot be found.

This commit is contained in:
Jeremy 2015-03-06 11:20:28 -07:00
parent b58f9e10f9
commit 053fd9cc0c

View File

@ -37,7 +37,10 @@ class CrashReport:
DSN = "sync+https://50af75d8641d4ea7a4ea6b38c7df6cf9:41d54936f8f14e558066262e2ec8bbeb@app.getsentry.com/38482"
if hasattr(sys, "frozen"):
cacert = os.path.join(os.getcwd(), "cacert.pem")
DSN += "?ca_certs={}".format(cacert)
if os.path.isfile(cacert):
DSN += "?ca_certs={}".format(cacert)
else:
log.warning("The SSL certificate bundle file could not be found".format(cacert))
_instance = None
def __init__(self):