Error logging and mutables as function defaults (#930)
* Remove mutable iterables as function defaults * Improve error reporting and standardise how it's done
This commit is contained in:
committed by
GitHub
parent
67d2e266fd
commit
00eea24e3f
@@ -34,6 +34,7 @@ from PyQt5.QtWidgets import (
|
||||
)
|
||||
|
||||
from novelwriter.enum import nwAlert
|
||||
from novelwriter.error import logException
|
||||
from novelwriter.constants import nwFiles
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -161,7 +162,7 @@ class GuiWordList(QDialog):
|
||||
|
||||
except Exception:
|
||||
logger.error("Could not save new word list")
|
||||
novelwriter.logException()
|
||||
logException()
|
||||
self.reject()
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user