logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 8806002886eeb998df54f3b44d8ad43513f58880
parent 99efd790c8e24a9e7d1ab1220e1da96cdd0a8003
Author: Alexandre Flament <alex@al-f.net>
Date:   Sun, 26 Apr 2015 19:12:17 +0200

Merge remote-tracking branch 'origin/ssl' into https

Diffstat:

Msearx/webapp.py10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/searx/webapp.py b/searx/webapp.py @@ -61,6 +61,16 @@ except: from sys import exit exit(1) +# check if the pyopenssl, ndg-httpsclient, pyasn1 packages are installed. +# They are needed for SSL connection without trouble, see #298 +try: + import OpenSSL.SSL # NOQA + import ndg.httpsclient # NOQA + import pyasn1 # NOQA +except ImportError: + logger.critical("The pyopenssl, ndg-httpsclient, pyasn1 packages have to be installed.\n" + "Some HTTPS connections will failed") + logger = logger.getChild('webapp')