Add logging wrapper for exceptions
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ import logging
|
||||
from PyQt5.QtGui import QIcon
|
||||
from PyQt5.QtWidgets import QApplication, QErrorMessage
|
||||
|
||||
from nw.error import exceptionHandler
|
||||
from nw.error import exceptionHandler, logException
|
||||
from nw.config import Config
|
||||
|
||||
##
|
||||
@@ -270,7 +270,7 @@ def main(sysArgs=None):
|
||||
info["CFBundleName"] = "novelWriter"
|
||||
except ImportError as e:
|
||||
logger.error("Failed to set application name")
|
||||
logger.error(str(e))
|
||||
logException(e)
|
||||
|
||||
# Import GUI (after dependency checks), and launch
|
||||
from nw.guimain import GuiMain
|
||||
|
||||
Reference in New Issue
Block a user