forked from openlp/openlp
Catch correct exception type
bzr-revno: 835
This commit is contained in:
commit
c481cf5c8c
@ -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