webui:error handling of no-daemon

This commit is contained in:
Martijn Voncken 2008-03-05 18:58:44 +00:00
parent 6e5da1cae3
commit fa0847a45b
1 changed files with 7 additions and 1 deletions

View File

@ -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']