Fixed pycodestyle E7 errors

This commit is contained in:
Veronica K. B. Olsen
2020-08-12 21:11:25 +02:00
parent 95ee2bf874
commit 72cb1ed60f
16 changed files with 38 additions and 36 deletions
+3 -2
View File
@@ -1243,7 +1243,8 @@ class NWProject():
for aValue in theValue:
if not isinstance(aValue, str):
aValue = str(aValue)
if aValue == "" and not allowNone: continue
if aValue == "" and not allowNone:
continue
xItem = etree.SubElement(xParent, theName)
xItem.text = aValue
return
@@ -1402,7 +1403,7 @@ class NWProject():
try:
rmdir(theData)
logger.info("Removed folder: %s" % theFolder)
except:
except Exception:
errList.append("Failed to remove: %s" % theFolder)
return errList