Author: damoxc
Revision: 5472
Log:
add a try/except block testing for openssl support before adding it as
an option to the commandline
Diff:
Modified: trunk/deluge/ui/web/web.py
===================================================================
--- trunk/deluge/ui/web/web.py 2009-07-08 07:10:15 UTC (rev 5471)
+++ trunk/deluge/ui/web/web.py 2009-07-08 18:07:12 UTC (rev 5472)
@@ -54,8 +54,13 @@
group.add_option("-p", "--port", dest="port", type="int",
help="Sets the port to be used for the webserver",
action="store", default=None)
- group.add_option("--ssl", dest="ssl", action="store_true",
- help="Forces the webserver to use ssl", default=False)
+ try:
+ import OpenSSL
+ except:
+ pass
+ else:
+ group.add_option("--ssl", dest="ssl", action="store_true",
+ help="Forces the webserver to use ssl", default=False)
self.parser.add_option_group(group)
@property
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---