From 66ec680e4ebd8ac0354361053ae73a7aaa597586 Mon Sep 17 00:00:00 2001 From: rimach Date: Wed, 5 May 2010 19:17:00 +0200 Subject: [PATCH] remove else from toolbar.py --- openlp/core/lib/toolbar.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openlp/core/lib/toolbar.py b/openlp/core/lib/toolbar.py index 824199469..a1af42736 100644 --- a/openlp/core/lib/toolbar.py +++ b/openlp/core/lib/toolbar.py @@ -120,11 +120,8 @@ class OpenLPToolbar(QtGui.QToolBar): try: if self.icons[title]: return self.icons[title] - else: - log.error(u'getIconFromTitle - no icon for %s' % title) - return QtGui.QIcon() except: - log.exception(u'getIconFromTitle - title %s not found' % title) + log.exception(u'getIconFromTitle - no icon for %s' % title) return QtGui.QIcon() def makeWidgetsInvisible(self, widgets):