2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

browser: cleanup

This commit is contained in:
Robert Jördens 2016-05-23 10:46:25 +02:00
parent 9dd7ea0bcd
commit b8e7ea8443

View File

@ -147,7 +147,7 @@ class LogBufferHandler(logging.Handler):
self.setFormatter(logging.Formatter("%(name)s:%(message)s"))
def emit(self, record):
if getattr(self.log, "model") is not None:
if self.log.model is not None:
self.log.model.append((record.levelno, record.source,
record.created, self.format(record)))