From 5516fdee86fe0ffcd34381985ebe798f9fbda1af Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Fri, 6 Jan 2017 04:23:47 +0100 Subject: Fix incorrect check for `self.log` --- voctogui/lib/uibuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voctogui/lib/uibuilder.py b/voctogui/lib/uibuilder.py index 8776480..53078b0 100644 --- a/voctogui/lib/uibuilder.py +++ b/voctogui/lib/uibuilder.py @@ -6,7 +6,7 @@ from gi.repository import Gtk, Gst class UiBuilder(object): def __init__(self, uifile): - if not self.log: + if not hasattr(self, 'log'): self.log = logging.getLogger('UiBuilder') self.uifile = uifile -- cgit v1.2.3