summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-07 22:47:51 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-07 22:47:51 +0200
commitf3c23dd3e635af594944fdb79e9cd90046eb407c (patch)
tree45c0f8ee50d61d6580a4aa776e1558dd578a09d0 /module
parentbetter link checking (diff)
parentMore log fixes (diff)
downloadpyload-f3c23dd3e635af594944fdb79e9cd90046eb407c.tar.xz
merge
Diffstat (limited to 'module')
-rw-r--r--module/web/pyload/views.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 2c58f021a..082882147 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -221,9 +221,15 @@ def logs(request, item=-1):
counter = counter+1;
if counter >= item:
- date,time,level,message = l.split(" ", 3)
- dtime = datetime.strptime(date+' '+time, '%d.%m.%Y %H:%M:%S')
-
+ try:
+ date,time,level,message = l.split(" ", 3)
+ dtime = datetime.strptime(date+' '+time, '%d.%m.%Y %H:%M:%S')
+ except:
+ dtime = datetime.strptime('01.01.3333 12:12:12', '%d.%m.%Y %H:%M:%S')
+ date = '?'
+ time = ' '
+ level = '?'
+ message = l;
if item == -1 and fro <= dtime:
item = counter #found our datetime
if item >= 0: