From b8e7ea844324d079cc32b67ddac2a0d8631f5f93 Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Mon, 23 May 2016 10:46:25 +0200 Subject: [PATCH] browser: cleanup --- artiq/frontend/artiq_browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/frontend/artiq_browser.py b/artiq/frontend/artiq_browser.py index f026f236c..6678a9db8 100755 --- a/artiq/frontend/artiq_browser.py +++ b/artiq/frontend/artiq_browser.py @@ -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)))