From 9bb7343092bd32c52ce9ebdb6be9fdb33e59b5fa Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Mon, 7 Jun 2010 00:24:45 +0100 Subject: [PATCH] Fix incorrect exception --- openlp/core/lib/toolbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/lib/toolbar.py b/openlp/core/lib/toolbar.py index 12916097e..799852908 100644 --- a/openlp/core/lib/toolbar.py +++ b/openlp/core/lib/toolbar.py @@ -120,7 +120,7 @@ class OpenLPToolbar(QtGui.QToolBar): try: if self.icons[title]: return self.icons[title] - except NameError: + except KeyError: log.exception(u'getIconFromTitle - no icon for %s' % title) return QtGui.QIcon()