diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-03 22:23:55 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-01-03 22:23:55 +0100 |
commit | c0eea4e1a19f57167d8e31ff0a6bac092c080a89 (patch) | |
tree | 74a596b660348d35e3ff77a032274dea2a0139b3 /module/web/pyload | |
parent | fixed daemon mode (diff) | |
download | pyload-c0eea4e1a19f57167d8e31ff0a6bac092c080a89.tar.xz |
little fixes
Diffstat (limited to 'module/web/pyload')
-rw-r--r-- | module/web/pyload/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py index 0da21f556..8246f3547 100644 --- a/module/web/pyload/views.py +++ b/module/web/pyload/views.py @@ -384,7 +384,10 @@ def config(request): data["validuntil"] = strftime("%d.%m.%Y",t) if data["options"].has_key("time"): - data["time"] = data["options"]["time"][0] + try: + data["time"] = data["options"]["time"][0] + except: + data["time"] = "invalid" return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {'conf': {'Plugin':plugin, 'General':conf, 'Accounts': accs}, 'errors': messages}, [status_proc])) |