From fa0847a45bb1928f2a48064a1df8ca1f95164ca4 Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Wed, 5 Mar 2008 18:58:44 +0000 Subject: [PATCH] webui:error handling of no-daemon --- deluge/ui/webui/utils.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deluge/ui/webui/utils.py b/deluge/ui/webui/utils.py index e8382c187..47145ce48 100644 --- a/deluge/ui/webui/utils.py +++ b/deluge/ui/webui/utils.py @@ -88,7 +88,13 @@ def do_redirect(): if ("order" in ck and "sort" in ck): url_vars.update({'sort':ck['sort'] ,'order':ck['order'] }) - if 'Organize' in proxy.get_enabled_plugins(): + organize = False + try: + organize = ('Organize' in proxy.get_enabled_plugins()) + except: + pass + + if organize: #todo:DRY if ("state" in ck) and ck['state']: url_vars['state'] = ck['state']