forked from openlp/openlp
Fix incorrect exception
This commit is contained in:
parent
ce2bab50cd
commit
9bb7343092
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user