Merge branch 'nightly' into python3

# Conflicts:
#	plexpy/datafactory.py
This commit is contained in:
JonnyWong16
2020-04-03 21:10:32 -07:00
3 changed files with 7 additions and 4 deletions

View File

@@ -462,7 +462,11 @@ def create_https_certificates(ssl_cert, ssl_key):
This code is stolen from SickBeard (http://github.com/midgetspy/Sick-Beard).
"""
from OpenSSL import crypto
try:
from OpenSSL import crypto
except ImportError:
logger.error("Unable to generate self-signed certificates: Missing OpenSSL module.")
return False
from certgen import createKeyPair, createSelfSignedCertificate, TYPE_RSA
serial = timestamp()