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()