Changeset 976285


Ignore:
Timestamp:
07/08/2009 06:07:12 PM (16 years ago)
Author:
Damien Churchill <damoc@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
3b810f
Parents:
e9541a
Message:

add a try/except block testing for openssl support before adding it as an option to the commandline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/web/web.py

    re9541a r976285  
    5555            help="Sets the port to be used for the webserver",
    5656            action="store", default=None)
    57         group.add_option("--ssl", dest="ssl", action="store_true",
    58             help="Forces the webserver to use ssl", default=False)
     57        try:
     58            import OpenSSL
     59        except:
     60            pass
     61        else:
     62            group.add_option("--ssl", dest="ssl", action="store_true",
     63                    help="Forces the webserver to use ssl", default=False)
    5964        self.parser.add_option_group(group)
    6065   
Note: See TracChangeset for help on using the changeset viewer.