diff --git a/jlog/views.py b/jlog/views.py index 1647f9251..55beae620 100644 --- a/jlog/views.py +++ b/jlog/views.py @@ -285,7 +285,10 @@ class TermLogRecorder(object): timestamp=int(self.recoderStartTime)) if self.user: record.user.add(self.user) - del TermLogRecorder.loglist[str(self.id)] + try: + del TermLogRecorder.loglist[str(self.id)] + except KeyError: + pass def list(self, user=None, uid=None): tmp = []