|
@@ -70,14 +70,12 @@ from searx.plugins import plugins
|
70
|
70
|
from searx.preferences import Preferences, ValidationException
|
71
|
71
|
from searx.answerers import answerers
|
72
|
72
|
|
73
|
|
-# check if the pyopenssl, ndg-httpsclient, pyasn1 packages are installed.
|
74
|
|
-# They are needed for SSL connection without trouble, see #298
|
|
73
|
+# check if the pyopenssl package is installed.
|
|
74
|
+# It is needed for SSL connection without trouble, see #298
|
75
|
75
|
try:
|
76
|
76
|
import OpenSSL.SSL # NOQA
|
77
|
|
- import ndg.httpsclient # NOQA
|
78
|
|
- import pyasn1 # NOQA
|
79
|
77
|
except ImportError:
|
80
|
|
- logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n"
|
|
78
|
+ logger.critical("The pyopenssl package has to be installed.\n"
|
81
|
79
|
"Some HTTPS connections will fail")
|
82
|
80
|
|
83
|
81
|
# serve pages with HTTP/1.1
|