diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-11 10:27:02 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-11 10:27:02 +0000 |
| commit | d499ec381ea5fbbae954531be9d66c9cc723c230 (patch) | |
| tree | bd1e7a6c6f92e5c5eaa4d6d32624855da7a0e9e3 /hacks | |
| parent | ac88dd455f83302ac990fe41a862018bed09a3a4 (diff) | |
Make analog.py cope with another date/time format.
Diffstat (limited to 'hacks')
| -rw-r--r-- | hacks/analog.py | 5 |
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 |
