Make a couple of random, minor fixes
This commit is contained in:
@@ -978,12 +978,12 @@ class Config:
|
|||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
import enchant # noqa: F401
|
import enchant # noqa: F401
|
||||||
self.hasEnchant = True
|
except ImportError:
|
||||||
logger.debug("Checking package 'pyenchant': OK")
|
|
||||||
except Exception:
|
|
||||||
self.hasEnchant = False
|
self.hasEnchant = False
|
||||||
logger.debug("Checking package 'pyenchant': Missing")
|
logger.debug("Checking package 'pyenchant': Missing")
|
||||||
|
else:
|
||||||
|
self.hasEnchant = True
|
||||||
|
logger.debug("Checking package 'pyenchant': OK")
|
||||||
return
|
return
|
||||||
|
|
||||||
# END Class Config
|
# END Class Config
|
||||||
|
|||||||
@@ -87,6 +87,8 @@ class NWErrorMessage(QDialog):
|
|||||||
self.mainBox.addWidget(self.btnBox, 2, 0, 1, 2)
|
self.mainBox.addWidget(self.btnBox, 2, 0, 1, 2)
|
||||||
self.mainBox.setSpacing(16)
|
self.mainBox.setSpacing(16)
|
||||||
|
|
||||||
|
# Pick a random window title from a set of error messages by
|
||||||
|
# Hex, the computer, from Discworld
|
||||||
self.setWindowTitle([
|
self.setWindowTitle([
|
||||||
"+++ Out of Cheese Error +++",
|
"+++ Out of Cheese Error +++",
|
||||||
"+++ Divide by Cucumber Error +++",
|
"+++ Divide by Cucumber Error +++",
|
||||||
|
|||||||
Reference in New Issue
Block a user