summaryrefslogtreecommitdiff
path: root/hacks
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-11 10:27:02 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-11 10:27:02 +0000
commitd499ec381ea5fbbae954531be9d66c9cc723c230 (patch)
treebd1e7a6c6f92e5c5eaa4d6d32624855da7a0e9e3 /hacks
parentac88dd455f83302ac990fe41a862018bed09a3a4 (diff)
Make analog.py cope with another date/time format.
Diffstat (limited to 'hacks')
-rw-r--r--hacks/analog.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/hacks/analog.py b/hacks/analog.py
index 51d8a9639..d14004c15 100644
--- a/hacks/analog.py
+++ b/hacks/analog.py
@@ -109,7 +109,10 @@ while True:
else:
# Date/time timestamp: other LOG_*
s = find_nth(l, ':', 3)
- T = Time(time.mktime(time.strptime(l[:s])))
+ try:
+ T = Time(time.mktime(time.strptime(l[:s])))
+ except:
+ T = Time(time.mktime(time.strptime(l[:s], "%d.%m.%Y %H:%M:%S")))
message = l[s+2:]
# T is elapsed time since the first log message