From b255fc40af6954b6759b3bfebb2696ee12dab111 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Thu, 28 Apr 2016 10:53:20 +0100 Subject: [PATCH] [WebUI] Remove openssl check as already a requirement --- deluge/ui/web/web.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/deluge/ui/web/web.py b/deluge/ui/web/web.py index bce168122..c2b5312e1 100644 --- a/deluge/ui/web/web.py +++ b/deluge/ui/web/web.py @@ -42,14 +42,8 @@ class Web(UI): help=_("Port for web server to listen on")) group.add_argument("-b", "--base", metavar="", action="store", help=_("Set the base path that the ui is running on")) - try: - import OpenSSL - assert OpenSSL.__version__ - except ImportError: - pass - else: - group.add_argument("--ssl", action="store_true", help=_("Force the web server to use SSL")) - group.add_argument("--no-ssl", action="store_true", help=_("Force the web server to disable SSL")) + group.add_argument("--ssl", action="store_true", help=_("Force the web server to use SSL")) + group.add_argument("--no-ssl", action="store_true", help=_("Force the web server to disable SSL")) self.parser.add_process_arg_group() @property