From 0a4cadba3e70566cbe6b27638e1620ed452c0f8b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 17 Mar 2021 01:53:10 +0100 Subject: [PATCH] Fixed KeyError --- platypush/backend/log/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platypush/backend/log/http.py b/platypush/backend/log/http.py index f1af9a44f8..18bab411cf 100644 --- a/platypush/backend/log/http.py +++ b/platypush/backend/log/http.py @@ -78,9 +78,9 @@ class LogEventHandler(EventHandler): f.seek(file_info.pos) for line in f.readlines(): evt = self._build_event(file=event.src_path, line=line) - if evt and (not file_info.last_timestamp or evt.args['timestamp'] >= file_info.last_timestamp): + if evt and (not file_info.last_timestamp or evt.args['time'] >= file_info.last_timestamp): get_bus().post(evt) - file_info.last_timestamp = evt.args['timestamp'] + file_info.last_timestamp = evt.args['time'] file_info.pos = f.tell() except OSError as e: