← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~meths/openlp/trivialfixes into lp:openlp

 

Jon Tibble has proposed merging lp:~meths/openlp/trivialfixes into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)


Fix trying to catch the wrong exception
-- 
https://code.launchpad.net/~meths/openlp/trivialfixes/+merge/26892
Your team OpenLP Core is requested to review the proposed merge of lp:~meths/openlp/trivialfixes into lp:openlp.
=== modified file 'openlp/core/lib/toolbar.py'
--- openlp/core/lib/toolbar.py	2010-05-27 16:00:51 +0000
+++ openlp/core/lib/toolbar.py	2010-06-06 23:25:37 +0000
@@ -120,7 +120,7 @@
         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()
 


Follow ups