Fiexd more formatting errors

This commit is contained in:
Veronica K. B. Olsen
2020-08-13 21:01:52 +02:00
parent 4cf49bd80a
commit 832b5747df
8 changed files with 74 additions and 73 deletions
+1
View File
@@ -76,6 +76,7 @@ logging.addLevelName(VERBOSE, "VERBOSE")
def logVerbose(self, message, *args, **kws): def logVerbose(self, message, *args, **kws):
if self.isEnabledFor(VERBOSE): if self.isEnabledFor(VERBOSE):
self._log(VERBOSE, message, args, **kws) self._log(VERBOSE, message, args, **kws)
logging.Logger.verbose = logVerbose logging.Logger.verbose = logVerbose
# Initiating logging # Initiating logging
+2 -1
View File
@@ -1402,7 +1402,8 @@ class NWProject():
try: try:
rmdir(theData) rmdir(theData)
logger.info("Removed folder: %s" % theFolder) logger.info("Removed folder: %s" % theFolder)
except Exception: except Exception as e:
logger.error(str(e))
errList.append("Failed to remove: %s" % theFolder) errList.append("Failed to remove: %s" % theFolder)
return errList return errList
-1
View File
@@ -1068,7 +1068,6 @@ class GuiBuildNovelDocView(QTextBrowser):
strBuildTime = "Unknown" strBuildTime = "Unknown"
self.theTitle.setText("<b>Build Time:</b> %s" % strBuildTime) self.theTitle.setText("<b>Build Time:</b> %s" % strBuildTime)
def _updateDocMargins(self): def _updateDocMargins(self):
"""Automatically adjust the header to fill the top of the """Automatically adjust the header to fill the top of the
document within the viewport. document within the viewport.