removed print statement

This commit is contained in:
Andreas Preikschat 2013-01-15 00:43:39 +01:00
parent c58a6c801d
commit 2c2268a326
2 changed files with 1 additions and 2 deletions

View File

@ -173,7 +173,6 @@ class OpenLP(QtGui.QApplication):
return False
def hookException(self, exctype, value, traceback):
print ''.join(format_exception(exctype, value, traceback))
if not hasattr(self, u'mainWindow'):
log.exception(''.join(format_exception(exctype, value, traceback)))
return

View File

@ -282,7 +282,7 @@ class Settings(QtCore.QSettings):
default_value = Settings.__default_settings__[self.group() + u'/' + key]
else:
default_value = Settings.__default_settings__[key]
setting = super(Settings, self).value(key, default_value)
setting = super(Settings, self).value(key, default_value)
# On OS X (and probably on other platforms too) empty value from QSettings is represented as type
# PyQt4.QtCore.QPyNullVariant. This type has to be converted to proper 'None' Python type.
if isinstance(setting, QtCore.QPyNullVariant) and setting.isNull():